Parse error while defining a state vector
显示 更早的评论
function dw = state_space_eqn(~,w,mass,stiffness_f, stiffness_r, damping_f, damping_r, l_f, l_r)
A = [0 0 1 0; 0 0 0 1; ((-stiffness_f - stiffness_r)/mass) ((-stiffness_f*l_f + stiffness_r*l_r)/mass) ((-dammping_f - damping_r)/mass) ((-damping_f*l_f + damping_r*l_r)/mass)];....
((-stiffness_f*l_f + stiffness_r*l_r)/inertia) ((-stiffness_f*l_f^2 - stiffness_r*l_r^2)/inertia) ((-damping_f*l_f + damping_r*l_r)/inertia) ((-damping_f*(l_f^2) - damping_r*l_r^2)/inertia)]
dw = A*w;
end
I'm getting parse error at '(' at the bolded bracket only.
How can i rectify it?
2 个评论
Ameer Hamza
2020-4-26
Can you show complete definition of vector A. If it is long, then you can attach an .m file.
Varun Vijaykumar Vupparige
2020-4-27
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Specialized Power Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!