How can I correct this error "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters"?

[t,y] = ode45((equfunc().m);(0,200);(1));
How to correct this ODE using a ODEsolver(ode45), so that I can run it properly and also, solve the ODE. After that, I can do the final step (plotting graphs)?

1 个评论

Please attach the equfunc.m file.
The syntax to call ode45 is incorrect, you can check out the correct syntax here - ode45

请先登录,再进行评论。

回答(1 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by