Change colour on grid
Mostrar comentarios más antiguos
Hi,
How would I change the colour of the little square island in my waves simulation?

Respuesta aceptada
Más respuestas (1)
Constantino Carlos Reyes-Aldasoro
el 23 de Abr. de 2025
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 comentario
Andrew
el 24 de Abr. de 2025
Categorías
Más información sobre Orange en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



