matlab - Multicolumn grouping and plotting -


i have data contain 55 columns , 24 rows. want plot every 5 columns in 1 figure. (to more specific... columns 1-5 figure 1, columns 6-10 figure 2....and on)

every time try loop lost. can me? seems simple i'm still learning how use matlab.

thank hep

you can loop on groups of 5:

my_array = zeros(24,55); % fill my_array  k = 1:11     values_to_plot = my_array(:,5 * (k-1) + 1 : 5 * k);     figure;     plot(values_to_plot); end 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -