looping through columns in the same nxm matrix
Afficher commentaires plus anciens
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 commentaires
Kye Taylor
le 8 Mai 2013
What is output from the command
whos diff12
kwadwo
le 9 Mai 2013
Réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!