hatch, shade between to functions

조회 수: 3 (최근 30일)
reza sadeghi
reza sadeghi 2017년 8월 12일
댓글: reza sadeghi 2017년 8월 13일
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,

답변 (1개)

Jan
Jan 2017년 8월 12일
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:
Please try this and post, if you have problems with it.
  댓글 수: 1
reza sadeghi
reza sadeghi 2017년 8월 13일
Thank you Jan, another question how can I determine the area between these two functions?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by