Struggling with iterative matrix multiplication
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a 3x3 (A) matrix where in each cell some math is being done(shown below) the variables lamda and omega are constants. t_in is incremented by one second intervals. How would I go about coding this so that I get a different matrix for each time interval used in the matrix calculations. My ultimate goal is to then multiply this 3x3 (A) matrix with a corresponding 3x1 [x;y;z] matrix to get a resulting 3x1 with the same number of 3x1 matricies as there are time steps. Do i need to use loops to do this? Would a function be the correct way to do this. looking for any guidnace to help me progress.
A = [ -sind(lamda - omega*t_in) cosd(lamda - omega*t_in) 0;
-sind(phi)*cosd(lamda-omega*t_in) -sind(phi)*sind(lamda - omega*t_in) cosd(phi);
cosd(phi)*cosd(lamda - omega*t_in) cosd(phi)*sind(lamda - omega*t_in) sind(phi)];
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!