How to loop over column?
1 view (last 30 days)
Show older comments
i have matrix input(4,12). i want to do loop over column but it only work for last column.
how do i get the loop correctly?
for j=1:12
xaij1=((input(:))-min(input(:,j)))/(max(input(:))-min(input(:)));
xaij=reshape(xaij1,[4,12]);
end
0 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!