Figureのcolormapが変更できません
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti

surf(peaks)
colormap winter
を実行すると
“入力引数が不足しています。
エラー: colormap (line 23) contour(xdata1,ydata1,zdata1,'LineStyle','none');”
とエラーが出でて、上記のFigureが出てきます。 発生する理由と対処法を教えていただけませんでしょうか。
0 Commenti
Risposta accettata
Kazuya
il 4 Nov 2018
colormap という関数か何かを作っていませんか?
which -all colormap
を実行して表示される m ファイルを確認してみてください。
C:\Program Files\MATLAB\R2018b\toolbox\matlab\graph3d\colormap.m
ではないものがあれば、おそらくそれが犯人です。
0 Commenti
Più risposte (1)
madhan ravi
il 4 Nov 2018
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)
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!