Sunday 15 January 2012

matlab - plot two matrices both of (4*36 double) size in mat lab -


I want to plot two matrix of both (4 * 36 double) sizes. In the first place, there is depth for 36 places in row and second place

Well I saw in the surf, but it reads two matrix and two matrix and yes I plot them as a column graph

Here's an example

  rho = magic (36); Row (5: 1: end, :) = []; D = magic (36); D (5: 1: end, :) = []; D = type (depth);   

Therefore, now the Matrix Road contains density for 36 places at four different depths. Matrix D consists of four separate depths, which are taught by Rouro. The first element of the first matrix matches the first element in the second matrix and at the end / end I want to say that 36 columns have the proper depth (d)

from different readings (RO) That I have helped clarify it in some way.

Simple examples of four conspiracy X and Y data Set of:

  X = Repeat (1:36, [4 1]); Y (1, :) = RAND (1,36); Y (2, :) = 0.2 * (1:36); Y (3, :) = 5 * sin (linsepace (-p, pi, 36)); Y (4, :) = 0.1 * (1:36). ^ 2; Data plot (X ', Y')   

The result of Enter the image details Here

Note - In order to get four series for the plot, the data should be in COLUMNS. The original data was in the 4x36 matrix, so it was in ROWS.

Maybe it helps ... .It is organized in the column by the transpose operator (apostrophe - X ' instead of just X ) Used.



No comments:

Post a Comment