My output in the workspace is a 1x1 dataset after I use the out block in Simulink

9 ビュー (過去 30 日間)
Marco Domingo
Marco Domingo 2016 年 10 月 26 日
回答済み: John Wirzburger 2016 年 10 月 26 日
Hi. I have a simple mathematical block diagram in simulink and I just wanted to make operations from a Simin and output the Simulink data to my Matlab workspace. My simulation ran fine but when I check my workspace the output produced is a 1x1 dataset and when i open it it's just the variable's name. I should have gotten for example a 100x1 matrix with the data from the simulation. I was just following the Simulink On Ramp tutorials. Many thanks.

回答 (1 件)

John Wirzburger
John Wirzburger 2016 年 10 月 26 日
The data should be stored in the dataset, but must be retrieved, using a function such as getElement. I suggest looking at this MathWorks link for more details. Accessing signal logging data

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by