MATLAB Answers

How can I find implement fzero in Simulink?

16 views (last 30 days)
Igor Batoukhtine
Igor Batoukhtine on 29 Mar 2016
Answered: Orion on 29 Mar 2016
In Matlab I have a simple code where I use the fzero function to find a zero of a second order poly. Now I want to simulate this in Simulink, but I can't use the fzero function in Simulink (it doesn't let me assign a anonymous function in the function block).
Can someone tell me what the best wat is to use this functionality in Simulink?

  0 Comments

Sign in to comment.

Accepted Answer

Orion
Orion on 29 Mar 2016
Hi,
You can use an Interpreted MATLAB Function block in your model.
Here, I'm solving sin(x) = 0 with an initial search value of 3.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by