How can i plot these equations? u1 VS t
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 1 de En. de 2020
Editada: Walter Roberson
el 25 de Abr. de 2020
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
Respuestas (0)
Ver también
Categorías
Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!