フィルターのクリア

Importing workspace variable to simulink?

1 回表示 (過去 30 日間)
satish kumar
satish kumar 2020 年 8 月 6 日
Can u help how to import a workspace variable to simulink. I am facing problem with simin block. It is asking for time column. But i want to send only variable, in my case it is row vector.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 8 月 6 日
Use "From Workspace" block. Assume your data is MyData=1:10, you need to make it a column vector and also provide a column vector of time.
time=(0:0.1:0.9)';
Specify the data as [time, MyData.'] for the "From Workspace" block.
  2 件のコメント
Santos García Rosado
Santos García Rosado 2021 年 3 月 10 日
Hi Fangjun. Does this work with a Matrix aswell?
Santos García Rosado
Santos García Rosado 2021 年 3 月 10 日

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

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by