필터 지우기
필터 지우기

How to fill between curves

조회 수: 2 (최근 30일)
Jake Simmonds
Jake Simmonds 2019년 2월 1일
댓글: madhan ravi 2019년 2월 1일
Hello there, just trying to work out how to use matlab to fill the regions between curves i've looked online and can't find anything of use. What i would like
is a method which given a set of values from f(t), and g(t) , where t= start:step:stop fills in the space between f(t) and g(t).
Best Regards Jake

답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2019년 2월 1일
Try something like:
f_of_t = f(t);
g_of_t = g(t);
fill([t,flilr(t)],[f_of_t,fliplr(g_of_t)],'r')
HTH
  댓글 수: 1
madhan ravi
madhan ravi 2019년 2월 1일
fliplr(t)
% ^-—-—-— typo missed it

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by