Figureのcolormapが変更できません
显示 更早的评论

surf(peaks)
colormap winter
を実行すると
“入力引数が不足しています。
エラー: colormap (line 23) contour(xdata1,ydata1,zdata1,'LineStyle','none');”
とエラーが出でて、上記のFigureが出てきます。 発生する理由と対処法を教えていただけませんでしょうか。
采纳的回答
更多回答(1 个)
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)
类别
在 帮助中心 和 File Exchange 中查找有关 カラーマップ 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!