hatch, shade between to functions
Mostrar comentarios más antiguos
Hi Matlab Gurus;
I am new to matlab. Can someone help me with hatching/shading ( not solid fill) between functions like the image attached

close all; clc;
x=[0 10 20 30 40 50 60]; v_upper= [0.8 0.8 0.8 0.6 0.4 0.2 0]; plot(x,v_upper, 'LineWidth',2); hold on; x_lower= [ 0 10 15 20 30 40 42]; v_lower= [0.4 0.4 0.4 0.33 0.18 0.03 0]; plot(x_lower,v_lower, 'LineWidth',2); xlim([0 60]); ylim([0 1]);
Thanks in advance,
Respuestas (1)
Jan
el 12 de Ag. de 2017
0 votos
The first point I'd start to search is to ask an internet search engine for "Matlab hatch". You will find useful links on the top of the list:
- https://blogs.mathworks.com/pick/2011/07/15/creating-hatched-patches/
- https://www.mathworks.com/matlabcentral/fileexchange/30733-hatchfill
- https://www.mathworks.com/matlabcentral/fileexchange/2075-hatch-m
Please try this and post, if you have problems with it.
1 comentario
reza sadeghi
el 13 de Ag. de 2017
Categorías
Más información sobre Annotations 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!