how to save value from display block in simulink?
13 ビュー (過去 30 日間)
古いコメントを表示
I want to save value from display block, how do i get it?. Indeed the value in the display block cannot be saved. But is there another way to store values from a block?. if you use a workspace the solution is not what I'm looking for. because the value I want is different from the value generated by the workspace. The value I want is the same value as in the display block. the value generated by workspace is 10336x2048, while the value generated by the display block is 2048.
this is values from display block that i want save.
![DISP.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221150/DISP.jpeg)
whereas this is the value generated by the workspace (this is different):![WORKSPACE.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221151/WORKSPACE.jpeg)
![WORKSPACE.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221151/WORKSPACE.jpeg)
0 件のコメント
採用された回答
ES
2019 年 5 月 27 日
workspace logs data in all simulation cycles, whereas the display block displays the only the current simulation data.
If you want the last simulation data (basically what is displayed in the display block after the simulation ends), you can look for the last row of the workspace data X(10336,:)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!