How to plot 3 variables (3rd variable on the colorbar)?
显示 更早的评论
I have three variables (below). I wonder on how will I plot it to achieve something similar with the attached picture?
X = day in a year (1 to 365) --> in days
Y = time in a day (1 up to 24) --> in hours
Z = load data in kW say for example

采纳的回答
更多回答(1 个)
Image Analyst
2019-5-25
0 个投票
You can make an image. If you don't have data for every x and y then use scatteredInterpolant. Then use imshow(Z) and colormap(jet(256)); to plot it.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

