フィルターのクリア

About use "surf" to paintings matrix problem

1 回表示 (過去 30 日間)
BB
BB 2012 年 9 月 15 日
HI,
I have a matrix of a 8x8 matrix
Code chart is as follows
clear all; clc;
a=[ 56 61 63 66 66 62 55 59
56 59 61 62 61 60 54 63
60 61 60 58 58 65 58 71
64 63 62 61 62 64 58 74
71 65 65 66 64 68 66 73
79 67 70 66 69 70 68 71
85 71 73 73 75 74 69 68
88 80 84 88 94 100 89 75];
surf(a);
axis([1,8,1,8]);
colorbar;
view(0,-90);
The color of the drawn graph is not the same as I want
ex: the original value of 100 (8 line 6 position)
How is not the same color?
What's wrong with me?
thanks

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 9 月 15 日
surf() uses the current colormap. They might have used a different colormap than you are using.
  1 件のコメント
BB
BB 2012 年 9 月 15 日
hi,
i mean the position(8 line 6 position) value is 100
but the drawn graph color is not red
so,maybe i can't use the "surf" command
i want plot 8x8 picture and the value use different color to represent the strength.
what the command can reach my goal?

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


BB
BB 2012 年 9 月 15 日
The picture should like this
please help me ,thanks

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by