Removing data1 from 3D Plot and change the color of colorbar

5 ビュー (過去 30 日間)
Yaser Khojah
Yaser Khojah 2020 年 6 月 20 日
コメント済み: Yaser Khojah 2020 年 6 月 22 日
I have x, y, z which I wanted to create a fitting surface plot by using interpolation as below. Now, I want to remove the data1 from the plot which I think it is the original data. So, the plot looks cleaner. In addition, I would like to show the variation of the colors from 0 to max, while any negative number by a smaller range. If the small range does not work, I want all the negative z to be one color. I also attached the plot and the data. Anyway to help please.
xx = data(:,1);
yy = data(:,2);
zz = data(:,3)
f = fit([xx, yy],zz,'cubicinterp');
figure
plot( f, [xx, yy], zz )
xlabel('\gamma')
ylabel('p_{s}')
zlabel('m^{*}_{NPV} ($B)')
yticks([0 , 2, 4, 6, 8, 10])
colormap jet
colorbar
  2 件のコメント
darova
darova 2020 年 6 月 21 日
What about just plot?
plot( f )
Yaser Khojah
Yaser Khojah 2020 年 6 月 22 日
I fixed by different method but thanks for this one too.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by