Change colour on grid
Ältere Kommentare anzeigen
Hi,
How would I change the colour of the little square island in my waves simulation?

Akzeptierte Antwort
Weitere Antworten (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 Kommentar
Andrew
am 24 Apr. 2025
Kategorien
Mehr zu Orange finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



