title: IIlustrate the relationship between the columns of the matrix in one figure using subplot()
body: <p>I have a matrix of 10 columns and 20000 rows. </p>
  
  <p>I need to build a plot to illustrate the relationship between the dimensions (columns) in one figure using subplot(). So like to compare 1st column to 1, 2, 3..10, 2 to 1st, 2, 3, 4, ...10th etc. 
  Should this be nested for loop? 
  I don't know where to start and isn't its easier to use plotmatrix(data,data) for example? </p>
  
  <p>thank you for any advice </p>
  
  <pre><code>l
  
  oad('data.mat')  %% loads matrix called data
   x = data; %% to make it faster 
  counter = 1; %%i ndex to make subplot function plot to the next row later on (fill further rows, beyond 1st one )
  for c = 1:10; %% condition to make matrix 10 by 10
  for i=1:10; %% condition to make matrix 10 by 10
      subplot(10,10,counter); %% 10 by 10 grid for plots
  plot (x( : ,i),x( : ,c)); %% actual plot command that uses columns of the matrix
  counter = counter+1; %% 
  end 
  end
  </code></pre>