フィルターのクリア

colorbar doesnt work in R2017b

2 ビュー (過去 30 日間)
Tamar Hoory
Tamar Hoory 2020 年 8 月 15 日
コメント済み: Tamar Hoory 2020 年 8 月 16 日
I i just switched from R2012 to R2017b and the colorbar command produces an error.
For example, even the simple pair of commands:
surf(peaks);colorbar;
produces this error:
Error using flip
Too many input arguments.
Error in flipud (line 14)
x = flip(x,1);
Error in matlab.graphics.shape.internal.AxesLayoutManager/insertAboveAxes
Error in matlab.graphics.shape.internal.AxesLayoutManager.getManager
Error in legendcolorbarlayout (line 19)
hManager = matlab.graphics.shape.internal.AxesLayoutManager.getManager(hAx);
Error in matlab.graphics.illustration.ColorBar/setAxesImpl
Error in matlab.graphics.illustration.ColorBar/set.Axes_I
Error in matlab.graphics.illustration.ColorBar/set.Axes
Error in colorbar (line 215)
cbar.Axes = peeraxes;

採用された回答

Steven Lord
Steven Lord 2020 年 8 月 15 日
More likely than not you've written or downloaded your own flip.m that does not accept the same number of inputs as the built-in flip function. To check this, look at how many versions of flip are on the path.
which -all flip
Leave ones in directories under matlabroot alone. Rename or remove the others.
  1 件のコメント
Tamar Hoory
Tamar Hoory 2020 年 8 月 16 日
Thanks! That was it.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by