Figureのcolormapが変更できません

8 次查看(过去 30 天)
Yuki Ito
Yuki Ito 2018-11-4
回答: Kazuya 2018-11-4
surf(peaks)
colormap winter
を実行すると
“入力引数が不足しています。
エラー: colormap (line 23) contour(xdata1,ydata1,zdata1,'LineStyle','none');”
とエラーが出でて、上記のFigureが出てきます。 発生する理由と対処法を教えていただけませんでしょうか。

采纳的回答

Kazuya
Kazuya 2018-11-4
colormap という関数か何かを作っていませんか?
which -all colormap
を実行して表示される m ファイルを確認してみてください。
C:\Program Files\MATLAB\R2018b\toolbox\matlab\graph3d\colormap.m
ではないものがあれば、おそらくそれが犯人です。

更多回答(1 个)

madhan ravi
madhan ravi 2018-11-4
x = linspace(-2*pi,2*pi); %see example
y = linspace(0,4*pi);
[X,Y] = meshgrid(x,y);
Z = sin(X)+cos(Y);
contour(X,Y,Z)

类别

Help CenterFile Exchange 中查找有关 カラーマップ 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!