how can I plot this figures
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi community,
Please I need your help to plot the figures like in the picture below.
Thanks
댓글 수: 2
Sam Chak
2022년 8월 7일
@Abdelkader Hd, these plots require either some maths or the data point needed to create them. Can you provide the data as labeled in the x- and y-axes?
채택된 답변
M.B
2022년 8월 8일
Try the function contourf:
x = linspace(-2*pi,2*pi);
y = linspace(0,4*pi);
[X,Y] = meshgrid(x,y);
Z = sin(X) + cos(Y);
figure(101);
contourf(X,Y,Z,100, 'edgecolor','none');
colormap hot; % use colormapeditor for a customised colormap
추가 답변 (1개)
Walter Roberson
2022년 8월 8일
https://www.mathworks.com/help/matlab/ref/histcounts2.html can be used to calculate the counts for density plot purposes. imagesc() with the appropriate colormap and colorbar(). Use tiledlayout to arrange the plots.
참고 항목
카테고리
Help Center 및 File Exchange에서 Orange에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!