export final point of Simulink signal to Workspace ?

24 Ansichten (letzte 30 Tage)
Khaled Abojlala
Khaled Abojlala am 30 Mär. 2017
Kommentiert: Tong Zhao am 19 Feb. 2022
I have a signal which is changing over the time of simulation, the signal is time variant signal, the final value of this signal which I interested in. How can I transfer the final point of this signal to Workspace?

Akzeptierte Antwort

Aniruddha Katre
Aniruddha Katre am 30 Mär. 2017
You can connect the To Workspace block to the signal you want to log. In the block parameters, set the "Limit data points to last" option to "1" so that only the last data point is logged. Also, set the "Save format" to "array".
  2 Kommentare
Khaled Abojlala
Khaled Abojlala am 31 Mär. 2017
Thanks a lot Aniruddha Katre for your help
Tong Zhao
Tong Zhao am 19 Feb. 2022
Thanky you Anruiddha, you just saved my day!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Prepare Model Inputs and Outputs finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by