How to get workspace variable data
1 回表示 (過去 30 日間)
古いコメントを表示
I have a model which consist of 3 To workspace blocks(say x,y,z),I need to automatically save To workspace data into excel sheet,I tried by
simOut1 = sim('mymodel','ReturnWorkspaceOutputs', 'on');
where p=simOut1.who ,gives
p =
'x'
'y'
'z'
now please tell how to get values of x,y,z so i can write these data to excel sheet.
0 件のコメント
回答 (1 件)
Sebastian Castro
2015 年 11 月 2 日
I think you want to do
>> xSeries = get(simout,'x');
>> t = xSeries.Time;
>> x = xSeries.Data;
- Sebastian
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!