Filter löschen
Filter löschen

How can i plot these equations? u1 VS t

1 Ansicht (letzte 30 Tage)
Muhammad Imran
Muhammad Imran am 1 Jan. 2020
Bearbeitet: Walter Roberson am 25 Apr. 2020
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 Kommentare
Walter Roberson
Walter Roberson am 1 Jan. 2020
Bearbeitet: Walter Roberson am 25 Apr. 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
Muhammad Imran
Muhammad Imran am 24 Apr. 2020
Thanks it worked.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by