如何在MATLAB中调用.exe文件,然后调用此.exe运行后生成的.txt文件?求大神指点。在线等,谢谢!

用system调用.exe文件。
我调用.exe是这么写的:
cmd='P:\zhongxinpinlv\Fd_CDE.exe';
system(cmd);
因为这个.exe程序运行后会生成一个.txt文件,求问如何在调用.exe之后再读取此.exe生成的.txt

https://www.mathworks.com/matlabcentral/answers/98722-how-can-i-force-matlab-7-9-r2009b-to-wait-for-an-exe-file-to-complete-before-continuing-with-the-m

https://www.mathworks.com/matlabcentral/answers/69038-does-matlab-system-call-wait-for-the-operation-to-finish-before-continuing-with-the-script
(这个办法可以试试看,命令行最后加上&)