looping through columns in the same nxm matrix
Mostrar comentarios más antiguos
hey can anybody tell me how to loop through the columns of the same matrix? I got stuck at
% code
for i=1:length(diff12)-1
Phint(i) = diff12(i+1)-diff12(i);
end
but it only does it for the first column. How do i get it to do it for all the columns in diff12?
2 comentarios
Kye Taylor
el 8 de Mayo de 2013
What is output from the command
whos diff12
kwadwo
el 9 de Mayo de 2013
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!