hi there i want to get the values of A1,A2,A2,Q1,Q2,Q3 , i have six equations and six initial conditions as Xo, Vo kindly suggest me solution

조회 수: 3 (최근 30일)
for i = 1:1:3
x(t) = U(i,1)*A1*cos(w2(1,1)*t + Q1) + U(i,2)*A2*cos(w2(2,2)*t + Q2) +U(i,3)*A3*cos(w2(3,3)*t + Q3);
x= x(t);
v= diff(x(t));
end
x
v
Xo = [1 0 0]
Vo = [0 0 0]
% eqns = [x(1,1) == Xo(1,1) , x(1,2) == Xo(1,2), x(1,3) == Xo(1,3), v(1,1) == Vo(1,1) , v(1,2) == Vo(1,2), v(1,3) == Vo(1,3)];
% S = solve(eqns,[A1 A2 A3 Q1 Q2 Q3])

채택된 답변

Walter Roberson
Walter Roberson 2022년 8월 2일
for i = 1:1:3
x{i} = U(i,1)*A1*cos(w2(1,1)*t + Q1) + U(i,2)*A2*cos(w2(2,2)*t + Q2) +U(i,3)*A3*cos(w2(3,3)*t + Q3);
v{i} = diff(x{i}, t);
end
Xo = [1 0 0]
Vo = [0 0 0]
eqns = [x{1} == Xo(1,1) , x{2} == Xo(1,2), x{3} == Xo(1,3), v{1} == Vo(1,1) , v{2} == Vo(1,2), v{3} == Vo(1,3)];
S = solve(eqns,[A1 A2 A3 Q1 Q2 Q3])
  댓글 수: 14
Rahul Jangid
Rahul Jangid 2022년 8월 3일
thanks for your efforts , i have reached to the sol. from your suggestions.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by