Time based output at simulink

3 views (last 30 days)
Nozhan Ghoreishi
Nozhan Ghoreishi on 17 Jul 2020
Is there anyway for extracting the last value of a block( corresponding to the end of simulation) in simulink?

Answers (2)

Abdolkarim Mohammadi
Abdolkarim Mohammadi on 17 Jul 2020
Edited: Abdolkarim Mohammadi on 17 Jul 2020
You can use "Display" block to view the last value or "To Workspace" block and set it to return the last value to the base workspace.
  1 Comment
Nozhan Ghoreishi
Nozhan Ghoreishi on 17 Jul 2020
yes, Thank you abdolkarim but the value is updated as the simulation goes on
and I want to use this value as onther block's input

Sign in to comment.


Abdolkarim Mohammadi
Abdolkarim Mohammadi on 17 Jul 2020
You can simply connect it to the next block :)

Community Treasure Hunt

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

Start Hunting!