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

 Akzeptierte Antwort

0 Stimmen

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

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!