Shade area between two curves
Afficher commentaires plus anciens
Hello,
I'm trying to fill the area between these two curves:

I had tried to use fill and patch function to shade but I didnt make it...

Any idea on how to fix the problem?
Thank you in advance for your help!
To get my first pic, please follow my step...
- Open 'combinefyp.slx'.
- Go to matlab and type the following variable.
ve = 25;
la = 4.6;
lx = 26.1;
yl = 3.7;
le = 4.6;
g = 9.8;
miu = 0.5;
3. Back to simulink then click 'Run'.
4. Go to matlab and type the following command.
plot(out.va1,out.L1);
hold on;
plot(out.va2,out.L2);
hold on;
2 commentaires
Rik
le 2 Avr 2022
Can you show what syntax you tried for the call to patch? And can you attach the out variable in a mat file?
LIM MING HUI
le 2 Avr 2022
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 3 Avr 2022
0 votes
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

