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!