If i want to read the different values from a signal at different instance of time generated by the scope from simulink. How to do it?

Antworten (1)

TAB
TAB am 6 Dez. 2012
Bearbeitet: TAB am 6 Dez. 2012
Save your scope data on base workspace by enabling option Scope Parameters > History > Save data to workspace with Foramat = Structure with time. From save structure you can read the signal value at any point of time.
For example if you want value at time t=5. Then on base workspace type
MyVal = ScopeData.signals.values[5]

1 Kommentar

Hi, I have same kind of question and I tried the above command. I used simout instead of ScopeData but with the same format. But I dont understand why is it showing this error.
Error: Unbalanced or unexpected parenthesis or bracket.
Please help

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Dez. 2012

Kommentiert:

am 7 Mär. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by