contourf with more colours
19 views (last 30 days)
More Answers (1)
Abdolkarim Mohammadi on 27 May 2020
Edited: Abdolkarim Mohammadi on 27 May 2020
This works for both contour and contourf. You can either tell MATLAB how many levels you want.
contour (X,Y,Z, levels);
If levels is a positive integer, it tells MATLAB how many levels you want. If levels is a vector, it tells MATLAB at which specific heights of Z you want levels to be drawn.