| MATLAB Central > MATLAB Newsreader > 3d plot for an mxn matrix, different x, y indices |
|
|
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Krithika Date: 23 Nov, 2009 00:37:02 Message: 1 of 10 |
|
I have an m x n matrix where the m denotes values obtained at different angles from 0 to 350, and n denotes the values obtained at different frequencies ranging from 20Khz to 20Hz. I am successfully able to plot the matrix in 3d using surf. But my x-axis and y-axis do not represent the angle and the frequency correctly, it just shows integer numbers from 1:m and 1:n . |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: kinor Date: 23 Nov, 2009 09:30:18 Message: 2 of 10 |
|
"Krithika " <venkatkv@ymail.com> wrote in message <heclfe$lm4$1@fred.mathworks.com>... |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Krithika Date: 23 Nov, 2009 18:39:20 Message: 3 of 10 |
|
meshgrid and plot3 do not help, as both require the length of X,Y, Z to be the same. In my case, mxn matrix is not a square matrix. |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: someone Date: 23 Nov, 2009 20:35:18 Message: 4 of 10 |
|
"Krithika " <venkatkv@ymail.com> wrote in message <heekso$1qi$1@fred.mathworks.com>... |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Krithika Date: 23 Nov, 2009 21:05:17 Message: 5 of 10 |
|
Unfortunately, meshgrid does not suit my purpose. I know how to plot my matrix. It is just that for my x-axis and y-axis, I do not want the integer values, I want to specify the proper angle and frequency the values correspond to. so for example, if i have my matrix as |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: someone Date: 23 Nov, 2009 21:46:19 Message: 6 of 10 |
|
"Krithika " <venkatkv@ymail.com> wrote in message <heeted$1ic$1@fred.mathworks.com>... |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Krithika Date: 23 Nov, 2009 22:41:03 Message: 7 of 10 |
|
xlim and ylim do not give me my desired results, either. As per my above example, x axis has 4 values and y axis has 2 values. If I give xlim([0 30]), it displays the x axis from 0 to 30. I do not want the graph / limits to change. I just need to display the xlabel and ylabel as ranging from 0 - 30 and from 20 - 19 Khz respectively. |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Krithika Date: 25 Nov, 2009 00:10:25 Message: 8 of 10 |
|
Does anybody has any suggestion as to how to superimpose the axis properties? this should get me my desired result |
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Steven Lord Date: 30 Nov, 2009 03:55:14 Message: 9 of 10 |
|
|
|
Subject: 3d plot for an mxn matrix, different x, y indices From: Luigi Giaccari Date: 8 Dec, 2009 12:20:20 Message: 10 of 10 |
|
"Krithika " <venkatkv@ymail.com> wrote in message <heclfe$lm4$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| plotting for 3d... | Will Huang | 25 Nov, 2009 12:44:41 |
Contact us at files@mathworks.com
