looping through columns in the same nxm matrix
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!