How to have a variable size array out of matlab function block and export that data to matlab (To Workspace) to plot ?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a simulink model, there is a matlab function block in it. The output of the matlab function block is a variable sized array. Eventhough I specify the size as undefined and take the output out of the block.
I am unable to connect it to To Workspace block to take it to Matlab to plot it. It gives me error to change the type as struct or change the sample time to discrete (which i do not want to affect the whole simulation). None of the method works. I am looking forward for a suggestion.
0 件のコメント
回答 (1 件)
Mark McBroom
2024 年 2 月 17 日
Rather than connecting to a "to workspace" block, did you try right mouse clicking on the signal and marking it as "log" and then use Simulink Data INspector to plot the signal?
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!