Utilizing Matlab for 2 "for loop" calculation
Mostrar comentarios más antiguos
Hi
I have two for loops, in which I am calculating my functions. I call many function inside of it and results of those functions are 2x2 matrices. Ex:
for m = 1:100
for n = 1:500
func1Result = func1(m,n,...); % Result is a 2x2 matrix
func2Result = func2(m,n,funct1Result..); %Result is a 2x2 matrix
..
Result1 = funcxResult1*funcxResult2*...;
...
end
end
However, the code is not efficient as I have 2 for loops. I want to utilize Matlab's linear operation advantage. However, I could not come up a solution about it. How can I do that so that I can fasten my computation?
Regards
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Special Functions en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!