MATLAB Answers

Export from workspace to simulink

11 views (last 30 days)
Ionut Grigore
Ionut Grigore on 22 Dec 2015
Edited: Renato Agurto on 22 Dec 2015
I have a honework and i dont know what kind of block is the big one .I need to bring from workspace to simulink values.

  0 Comments

Sign in to comment.

Answers (1)

Renato Agurto
Renato Agurto on 22 Dec 2015
Edited: Renato Agurto on 22 Dec 2015
Simulink -> sources -> constant
if you have a constant in the workspace. You just need to write the name of the variable inside the block. Or:
Simulink -> sources -> From workspace
if you want a signal. For example:
simin.time = (1:10)';
simin.signals.values = simin.time.^2;

  0 Comments

Sign in to comment.

Sign in to answer this question.