Prev: scrollbar for the axes
Next: filter fft data
From: sassiric on 2 Aug 2010 05:29 Hello to everybody! I have to plot a matrix 10111 x 3 where the first two columns are the points' coordinates and the third column is the value of the point. With that matrix i have take a grid to approximate the plan's portion [0...10,0...10]: 0 0 0,162093682194603 0 0,1 0,165728548002140 0 0,2 0,167755607990236 ... 10 9,8 0,0535482539857293 10 9,9 0,0528223670673184 10 10 0,0519024643636819 I hope you understand the meaning of the matrix. I want to print a graph 3D or 2D with different colours to see where in the plan 10x10 i reach highest value and where the lowest value are localized. Thank you very much.
From: us on 2 Aug 2010 09:30 "dasdasd asdasdasd" <dhcyrtlbd(a)cmcidj.com> wrote in message <i36gml$4gg$1(a)fred.mathworks.com>... > Hello to everybody! I have to plot a matrix 10111 x 3 where the first two columns are the points' coordinates and the third column is the value of the point. With that matrix i have take a grid to approximate the plan's portion [0...10,0...10]: > > 0 0 -0,162093682194603 > 0 0,1 -0,165728548002140 > 0 0,2 -0,167755607990236 > ... > 10 9,8 0,0535482539857293 > 10 9,9 0,0528223670673184 > 10 10 0,0519024643636819 > > I hope you understand the meaning of the matrix. > I want to print a graph 3D or 2D with different colours to see where in the plan 10x10 i reach highest value and where the lowest value are localized. > Thank you very much. a hint: help scatter; us
From: us on 2 Aug 2010 09:41 sassiric <sassi.riccardo(a)gmail.com> wrote in message <1108869274.41517.1280755795217.JavaMail.root(a)gallium.mathforum.org>... > Hello to everybody! I have to plot a matrix 10111 x 3 where the first two columns are the points' coordinates and the third column is the value of the point. With that matrix i have take a grid to approximate the plan's portion [0...10,0...10]: > > 0 0 0,162093682194603 > 0 0,1 0,165728548002140 > 0 0,2 0,167755607990236 > .. > 10 9,8 0,0535482539857293 > 10 9,9 0,0528223670673184 > 10 10 0,0519024643636819 > > I hope you understand the meaning of the matrix. > I want to print a graph 3D or 2D with different colours to see where in the plan 10x10 i reach highest value and where the lowest value are localized. > Thank you very much. do NOT double post... us
From: sassiric on 2 Aug 2010 10:47 Sorry for the double. I tried with: scatter3(Z(:,1),Z(:,2),Z(:,3)) but the result is not as i hope. I want to underline the region where the values are highest using different colours. The best is a 2D graph. I tried also with the scatter function but it needs only two parameters in input.
From: us on 2 Aug 2010 15:13 sassiric <sassi.riccardo(a)gmail.com> wrote in message <1600095594.43361.1280774873550.JavaMail.root(a)gallium.mathforum.org>... > Sorry for the double. > > I tried with: > scatter3(Z(:,1),Z(:,2),Z(:,3)) > > but the result is not as i hope. I want to underline the region where the values are highest using different colours. The best is a 2D graph. I tried also with the scatter function but it needs only two parameters in input. one of the solutions - note: you're not using the correct syntax to add color information... [x,y,z]=peaks(32); cm=jet(numel(z)); % <- use your own color map... scatter3(x(:),y(:),z(:),[],cm); us
|
Pages: 1 Prev: scrollbar for the axes Next: filter fft data |