How to plot 3 variables (3rd variable on the colorbar)?
Show older comments
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

Accepted Answer
More Answers (1)
Image Analyst
on 25 May 2019
0 votes
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.
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
