Struggling with iterative matrix multiplication
2 次查看(过去 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!