Struggling with iterative matrix multiplication

1 回表示 (過去 30 日間)
Tommy Pestolesi
Tommy Pestolesi 2019 年 12 月 9 日
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 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by