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

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

 Accepted Answer

0 votes

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!