From: Erik on 19 Mar 2010 04:31 Hello! I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')" Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3? I want the image to look something like the link below when done http://img535.imageshack.us/img535/576/snapshot1n.png Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here. Sincerely /E
From: us on 19 Mar 2010 04:41 "Erik " <erija952(a)student.liu.se.remove.this> wrote in message <hnvcou$5gm$1(a)fred.mathworks.com>... > Hello! > I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')" > > Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3? > > I want the image to look something like the link below when done > http://img535.imageshack.us/img535/576/snapshot1n.png > > Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here. > > Sincerely > /E a hint: help scatter3; us
From: Erik on 19 Mar 2010 06:01 "us " <us(a)neurol.unizh.ch> wrote in message <hnvdb0$f4v$1(a)fred.mathworks.com>... > "Erik " <erija952(a)student.liu.se.remove.this> wrote in message <hnvcou$5gm$1(a)fred.mathworks.com>... > > Hello! > > I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')" > > > > Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3? > > > > I want the image to look something like the link below when done > > http://img535.imageshack.us/img535/576/snapshot1n.png > > > > Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here. > > > > Sincerely > > /E > > a hint: > > help scatter3; > > us I believe this will solve my problem! Thanks alot! /E
|
Pages: 1 Prev: how to use glcm properties for classification Next: Reduce legend size |