How can i change colour of a 3D plot?

4 ビュー (過去 30 日間)
Nikhil Murarka
Nikhil Murarka 2019 年 5 月 30 日
編集済み: Nikhil Murarka 2019 年 5 月 30 日
I have been trying to plot a 3D curve consisting of 4 variables :3 along the three axes and the fourth one as the parameter.As i change the value of the parameter the graph changes accordingly but since the new graph's color is similar to the old one it is difficult to distinguish them..the image has D2 as a parameter. Can i change the color of the graph according to the legend function? Thanks!

回答 (1 件)

Gaurav Srivastava
Gaurav Srivastava 2019 年 5 月 30 日
Carefully observe the table, and the syntax is
plot(x,y,'r+-') %r=Colour(here red) , +=Marker style(here plus) , -=Line style(here solid)
Check the tableScreenshot (19).png
  1 件のコメント
Nikhil Murarka
Nikhil Murarka 2019 年 5 月 30 日
This will give me a simple plot of (x,y).This syntax is not applicable for 3D plots.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by