MATLAB simulink, can you help me?

Hello can you help me? v'=0.04v^2+5v+140+I u^'=a(bv-u) If v>30 mV { (v← c , u←u+d) } Could you make a simulink block diagram of the above statements?

 Accepted Answer

Birdman
Birdman on 2 Apr 2018
I made a simple model but you need to modify it since I did not fully understand what you want to do. I gave random values for a,b,c,d. Hope this helps.

9 Comments

thanks
Where is the matlab / simulink file
It is attached in my answer, named equationSim.mdl
thank you, but I wanted to do it using block diagrams
Birdman
Birdman on 2 Apr 2018
Edited: Birdman on 2 Apr 2018
You can, but you do not need to. It is more efficient and neat to work with a MATLAB Function. If you really want it to, try something and ask specific questions. I will be answering.
v'=0.04v^2+5v+140+I and u'=a(bv-u) I can make these two differential equations in block form, but I can not do the conditional part.
Use Logical Operators or If-Else block.
I uploaded a photo up.could you review the photo and say the missing direction
I don't see any photo.
hamza ünsal
hamza ünsal on 2 Apr 2018
Edited: hamza ünsal on 2 Apr 2018
I uploaded a photo

Sign in to comment.

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!