Can I use as Input at Simulink a equation?

16 views (last 30 days)
Bob on 24 Dec 2015
Edited: Bob on 9 Mar 2016
Can I use this equation as input at Simulink? I would appreciate any help.
Simulink block:

Accepted Answer

Walter Roberson
Walter Roberson on 24 Dec 2015
Use a MATLAB Function Block, or an Interpreted MATLAB Block
Bob on 2 Jan 2016
Thank you for your answer again.
So I should calculate the equation in Matlab.
Get two variables simin=[t,h].
And use "From Workspace" block at Simulink?
Actually I did that. I got the same results with Matlab. The only "problem" is that I have to manually change the simulation time in Simulink but it's ok.
Thanks for your time.

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!