Change colour on grid
Mostra commenti meno recenti
Hi,
How would I change the colour of the little square island in my waves simulation?

Risposta accettata
Più risposte (1)
The colour is going to be related to the values of whatever you are plotting, e.g.,
L = 160*membrane(1,100);
mesh(L)
colorbar
The blue is due to the values in the square region, and it is related to the colormap that you use. You may play with the colormaps to change those values but you will be affecting all the values.
figure
mesh(L)
colorbar
colormap jet
Hope this helps.
1 Commento
Andrew
il 24 Apr 2025
Categorie
Scopri di più su Orange in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



