How to add different shaded Color to the back ground of a graph?
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
taimour sadiq
le 15 Août 2023
Commenté : taimour sadiq
le 16 Août 2023
a = 0:0.1:2*pi;
b = sin(a);
plot(a,b)
i have written a simple code of sin wave.. i want to add diffrent background colours to different regions or bands.. for example 0-2 some colour, 2-4 some other colour.. as shown in a picture added with this question.
i have tried "area" & "Fill" function but not getting desired results.


0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!