How can i plot these equations? u1 VS t

1 次查看(过去 30 天)
Hi there,
I want to plot u1 vs t but it is showing me error. How can i plot this?
syms q1(t)
q1=cos(D1*t)*qu0(1,1);
syms q2(t)
q2=cos(D2*t)*qu0(2,1);
syms q3(t)
q3=cos(D3*t)*qu0(3,1);
syms q4(t)
q4=cos(D4*t)*qu0(4,1);
syms q5(t)
q5=cos(D5*t)*qu0(5,1);
u1=V(1,1)*q1+V(1,2)*q2+V(1,3)*q3+V(1,4)*q4+V(1,5)*q5
where D1, D2, D3, D4, D5 are constants, and qu0(1,1) is first entry of vector qu0.
q1,q2,q3,q4,q5 are equations in terms of variable t.
V(1,1), V(1,2), V(1,3), V(1,4), V(1,5) are vectors from a matrix V.
  2 个评论
Walter Roberson
Walter Roberson 2020-1-1
编辑:Walter Roberson 2020-4-25
q1(t) = cos(D1*t)*qu0(1,1);
q2(t) = cos(D2*t)*qu0(2,1);
q3(t) = cos(D3*t)*qu0(3,1);
q4(t) = cos(D4*t)*qu0(4,1);
q5(t) = cos(D5*t)*qu0(5,1);
u1(t) = V(1,1)*q1(t) + V(1,2)*q2(t) + V(1,3)*q3(t) + V(1,4)*q4(t) + V(1,5)*q5(t);
fplot(u1, [-5 5]) %-5 5 are the start and end times

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Formula Manipulation and Simplification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by