How do I incorporate meaningful colorbar/colormap in a 2D plot; Having a matrix size [83,25000]

조회 수: 36 (최근 30일)
I've a matrix to plot as row vs. column. I've done with the following scripts:
yy = rand(83,25000) ;
x = 1:size(yy,1) ;
figure
hold on
for i = 1:size(yy,2)
plot(x,yy(:,i),'.')
end
colorbar
How can I insert a meaningful colorbar? Otherwise, any other ways to plot the matrix with colorbars? Can anybody suggest me. Any suggestion/help is appreciated. Thanks

채택된 답변

KSSV
KSSV 2021년 5월 18일
yy = rand(83,25000) ;
x = 1:size(yy,1) ;
y = 1:size(yy,2) ;
pcolor(x,y,yy') ;
shading interp
colorbar
  댓글 수: 8
SA
SA 2021년 5월 18일
With this plot, it is unclear to observe the contribution of x-axis points to the y-axis? I want to check the contribution of every point on axis corresponding to the y-axis (maybe dots with colorbar suit well, but I can not do dots with colorbar). Any help is appreciated.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by