Struggling with iterative matrix multiplication
1 回表示 (過去 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!