The matlab example shows that we can add colorbar to individual tiles see attached, but can we add one colorbar for the whole figure? I also have problems with adding a legend and positioning it.
Example code:
tiledlayout(2,1)% Top plot
nexttile surf(peaks)colorbar% Bottom plot
nexttilemesh(peaks)colorbar
Best Answer