How to plot 3 different data in contour or pcolor ?
3 次查看(过去 30 天)
显示 更早的评论
I have three different data
- Time steps = 1X108 (should be in X-axis)
- Data1 = 36X108 (should be in Y-axis(left))
- Data2 = 36X108 (should be display in colour/countour/pcolor)
Now I want to plot temporal plot (colour plot ) like the image I attached
6 个评论
Ameer Hamza
2020-5-26
something like this?
p = pcolor(dt, nw_bin, sizdist)
shading interp
xlabel('x');
ylabel('y');
colorbar
采纳的回答
Ameer Hamza
2020-6-2
p = pcolor(dt, nw_bin, sizdist)
shading interp
xlabel('x');
ylabel('y');
colorbar
2 个评论
Ameer Hamza
2020-6-2
Try this code
Dt = repmat(dt, 36, 1);
[dt_grid, nw_bin_grid] = meshgrid(dt, mean(nw_bin, 2));
sizdist_grid = griddata(Dt(:), nw_bin(:), sizdist(:), dt_grid, nw_bin_grid);
contourf(dt_grid, nw_bin_grid, sizdist_grid)
shading interp
xlabel('x');
ylabel('y');
colorbar
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!