How could I change or open the data in Workspace?

1 回表示 (過去 30 日間)
Zaid Adam
Zaid Adam 2016 年 10 月 5 日
コメント済み: Zaid Adam 2016 年 10 月 5 日
My question is I have a Simulink file from the Internet and when I run it there is a data show up in the workspace, how could I open these data or change it.

採用された回答

Walter Roberson
Walter Roberson 2016 年 10 月 5 日
If you run the model by double-clicking on it or selecting Run from a menu or a button, then the outputs will go into the base workspace. If you are at the command line, you can see what is in the base workspace by entering the command
workspace
to open the workspace browser.
If, instead, the model is being controlled by a MATLAB function which is making sim() calls, then the output will go into the workspace of the function that makes the calls. To see that output you would need to put a breakpoint in the function and use the workspace browser to examine the function's workspace.
  3 件のコメント
Walter Roberson
Walter Roberson 2016 年 10 月 5 日
Right click on the appropriate blocks and set the parameters using the context menu there. When you are done, save the model.
Zaid Adam
Zaid Adam 2016 年 10 月 5 日
Thanks for your support, but I need to know how they did that if could help me with link or lesson about matlab files.

サインインしてコメントする。

その他の回答 (1 件)

Mohammad Haghighat
Mohammad Haghighat 2016 年 10 月 5 日
As far as I know, you can only change the name in the Workspace. However, if you double click on the data, it opens it in the Editor, in which you can easily manipulate your data.
  1 件のコメント
Zaid Adam
Zaid Adam 2016 年 10 月 5 日
Thanks, My question is how could I change the parameters forever because as long as I run the file the parameters go to the original values. my file is Simulink (blocks)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNaming Conventions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by