Struggling with iterative matrix multiplication
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!