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!