How to plot colorbar in matlab?

Hi,
I am interested to see the colorbar of a column vector, for example: A(6x1)=[1;2;0.01;4;5;6]. Can you please give me some idea how can I do it?
Thanks D Bhuiyan

回答 (2 件)

Thomas Koelen
Thomas Koelen 2015 年 4 月 13 日

0 投票

a=[1:6];
b=[2 3 4 2 1 3];
bar(a,b)
KL
KL 2015 年 4 月 13 日

0 投票

You should use filled contour plot with legend. Check contourf() and clegendm()

カテゴリ

タグ

質問済み:

2015 年 4 月 13 日

回答済み:

KL
2015 年 4 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by