I want to plot only data that is greater than or equal to 6 and less than or equal to 12 on the colorbar. I have written the following. But am unable to include other restrictions:
scatter(x(log_gnd>=6), y(log_gnd>=6), 5, log_gnd(log_gnd>=6));
I also want to divide the colorbar into only 4 segments.
Plot data points greater than or equal to 6 and lower than or equal to 12 (and function reference).
Concerning the division of colorbar into 4 segments, following code divides colorbar with labels. If you would like for numbers to be there remove
'YTickLabel', {'First', 'Second', 'Third'}from the code.