请教一下这里为什么不支持点进行索引?。

clear
clc
X=[1 2 3;4 5 6;7 8 9];
pcolor(X)
X.FaceColor = 'interp';
colorbar

 採用された回答

0 投票

要写成
h = pcolor( X );
h.FaceColor = 'interp';
X是数据矩阵,h才是图像,FaceColor 这种性质要对图像对象进行指定

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange线图 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!