Prev: how to divide an image to blocks of 8x8 image and access eachblock separately
Next: Number decomposition
From: Kyle on 2 Jun 2010 10:23 Hey all, I have a 600*700 matrix, and I want to plot one of the columns versus the column index (ie, horizontal axis should be the index going from 0-600, and the vertical axis will be the value of that cell) Say I want to plot column 500 of 700. Can someone point me in the right direction?
From: Luca Zanotti Fragonara on 2 Jun 2010 10:35 "Kyle " <kbrig035(a)uottawa.ca> wrote in message <hu5pg8$8qu$1(a)fred.mathworks.com>... > Hey all, > > I have a 600*700 matrix, and I want to plot one of the columns versus the column index (ie, horizontal axis should be the index going from 0-600, and the vertical axis will be the value of that cell) Say I want to plot column 500 of 700. Can someone point me in the right direction? What king of representation would you like to have? If your matrix is a 600x700, and you plot the 1st column, you will have 600 values. How do you want to display them? If you want to display a matrix, you can use imagesc(yourmatrix) that shows different colours respect to the value of your cell.
From: Kyle on 2 Jun 2010 11:03
"Luca Zanotti Fragonara" <Luca_Zanotti(a)libero.it> wrote in message <hu5q6r$qkr$1(a)fred.mathworks.com>... > "Kyle " <kbrig035(a)uottawa.ca> wrote in message <hu5pg8$8qu$1(a)fred.mathworks.com>... > > Hey all, > > > > I have a 600*700 matrix, and I want to plot one of the columns versus the column index (ie, horizontal axis should be the index going from 0-600, and the vertical axis will be the value of that cell) Say I want to plot column 500 of 700. Can someone point me in the right direction? > > > What king of representation would you like to have? If your matrix is a 600x700, and you plot the 1st column, you will have 600 values. How do you want to display them? > > If you want to display a matrix, you can use imagesc(yourmatrix) that shows different colours respect to the value of your cell. Hello, I sorted it out. I just wanted to get a linear plot of one column of the data at a time, which I did with slice = A(:,col) plot(slice) thanks :) |