필터 지우기
필터 지우기

How can i plot these equations? u1 VS t

조회 수: 1 (최근 30일)
Muhammad Imran
Muhammad Imran 2020년 1월 1일
편집: Walter Roberson 2020년 4월 25일
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
Muhammad Imran
Muhammad Imran 2020년 4월 24일
Thanks it worked.

댓글을 달려면 로그인하십시오.

답변 (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