How to plot colorbar in matlab?

조회 수: 1 (최근 30일)
D Bhuiyan
D Bhuiyan 2015년 4월 13일
답변: KL 2015년 4월 13일
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일
a=[1:6];
b=[2 3 4 2 1 3];
bar(a,b)

KL
KL 2015년 4월 13일
You should use filled contour plot with legend. Check contourf() and clegendm()

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by