MATLAB Answers

matlab function simulink parameters

3 views (last 30 days)
Maximilian Dio
Maximilian Dio on 6 Jun 2019
Answered: Raghunandan V on 7 Jun 2019
Hey I am currently trying to implement a matlab function in my simulink block with a lot of parameters that are in my workspace. What is the best way to get those constants into the function for now I am using just constant blocks as input for the parameters but this doesn't seem to be the best workaround.
Regards, Max

  0 Comments

Sign in to comment.

Answers (1)

Raghunandan V
Raghunandan V on 7 Jun 2019
Hi,
You can name the same name in the constant block with the same name as that of workspace.
For example:
If you have a constant block of value 2. Replace 2 by the name in matlab workspace.

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by