equation and function setup in Simscape
1 view (last 30 days)
Show older comments
Hi, I need your small help. Lets say, I have I = C * dv/dt
which is:
dv/dt = I/C
If I integrate this equ, I will have
v = (I/C)*t + constant
where constant = v(t=0)
So, in simscape when I do:
function setup v = { 5 ,'V'}; end
equation i == C*v.der end
does this v(t=0) value is taken from function setup?
Or equivalently, does this mean:
v = (I/C)*t + 5
when I actually implement this simscape equ.
Please kindly let me know about "der" and "function setup" thing. I have read the manual and other stuffs in the Internet but I could not get my answer. I need to know how the initial value can be given in the equation using ".der"
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Troubleshooting 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!