필터 지우기
필터 지우기

Fill a Matrix with derivatives

조회 수: 2 (최근 30일)
Hugo Hernández Hernández
Hugo Hernández Hernández 2021년 5월 15일
Hello all,
I am trying to create the following Matrix and then repeat it for each epoch so I get a 14002 x 4 Matrix,
I am setting the following structure to create it:
iv1 = [Tandem(1,1) Tandem(1,4) Tandem(1,3) Tandem(1,6)]; % For xz Matrix
iv2 = [Tandem(1,2) Tandem(1,5)]'; % For y Matrix
T = (2*pi)*(sqrt(a^3/(G*M))); % [sec]
n = sqrt((G*M)/a^3); % [rad/sec] % Using Kepler's third law
tt1 = (0:10:70001)';
tt2 = (0:10:140010)';
Axz = zeros(2,length(iv1));
for i = 0:length(tt2)-1
for j = 0:length(iv1)-1
Axz(i+1,j+1) = iv1(j+1)^j;
end
end
The problem comes when I try to set each derivative "equation" into my matrix, do not know how to set each element into my for loop. I would appreciate if you can help me. Thanks!
Hugo

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statics and Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by