Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

I have a, b and c. for different values of c i plot a vs b. since it took a lot of time manually to feed in different values of c and run the prog. I used a for loop and used 3d plot. Is there a way by which i can plot using diff color for diff c.

Asked by Sudharsana Iyengar on 15 Feb 2013

I have a, b and c. for different values of c i plot a vs b. since it took a lot of time manually to feed in different values of c and run the prog. I used a for loop and used 3d plot. Is there a way by which i can plot using diff color for diff c.

i used the following commands

 plot3(bi(:,1),bi(:,2),bi(:,3),'.b','markersize',1)
 xlabel('c')
 ylabel('a')
 zlabel('b')

i just want multiple scatter plots for different values of 'c'.

0 Comments

Sudharsana Iyengar

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst on 15 Feb 2013
Accepted answer
theColor = rand(1,3); % Whatever 3 numbers you want between 0 and 1.
plot3(bi(:,1),bi(:,2),bi(:,3),'.b','markersize',1, 'Color', theColor);

0 Comments

Image Analyst

Contact us