How to plot colorbar in matlab?

1 view (last 30 days)
D Bhuiyan
D Bhuiyan on 13 Apr 2015
Answered: KL on 13 Apr 2015
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

Answers (2)

Thomas Koelen
Thomas Koelen on 13 Apr 2015
b=[2 3 4 2 1 3];

KL on 13 Apr 2015
You should use filled contour plot with legend. Check contourf() and clegendm()


Find more on Colormaps in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!