gistlib
main.m% Example 1: Iterate over a vector vector = [1, 3, 5, 7, 9]; for i = 1:length(vector) disp(vector(i)); end % Example 2: Iterate for a fixed number of times n = 5; for i = 1:n disp(i); end 197 chars12 lines
% Example 1: Iterate over a vector vector = [1, 3, 5, 7, 9]; for i = 1:length(vector) disp(vector(i)); end % Example 2: Iterate for a fixed number of times n = 5; for i = 1:n disp(i); end
gistlibby LogSnag