Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to run simulink inside .m file? how to export simulink results in excel?

1 次查看(过去 30 天)
I need to run simulink file from a m.file and then after I should export the results in excel, can you pls help me

回答(1 个)

Angelo
Angelo 2016-2-24
Hello,
check on help these topics:
set_param(bdroot, 'SimulationCommand', 'Start');
set_param(bdroot, 'SimulationCommand', 'Stop');
xlswrite(filename,A);
Regards
angelo

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by