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.

조회 수: 3 (최근 30일)
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'.

채택된 답변

Image Analyst
Image Analyst 2013년 2월 15일
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개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by