필터 지우기
필터 지우기

I want to plot some thing like this picture how can i do this ?

조회 수: 4 (최근 30일)
Sunil Oulkar
Sunil Oulkar 2016년 3월 7일
편집: Image Analyst 2016년 3월 7일
Please see attachment below...

채택된 답변

Jos (10584)
Jos (10584) 2016년 3월 7일
Use AXES to create a new axis relative to the another axes
x = 0:100 ; y = exp((x/50).^2)+rand(size(x)) ; % some data
% plot #1
ph = plot(x,y,'b-')
hold on
fill(x([1 1 50 50]),y(1) + [1 -1 -1 1],[1 1 0])
hold off ;
uistack(ph,'top')
% insert plot
p0 = get(gca,'position')
p1 = [p0(1)+0.1 p0(2)+0.3 p0(3)/2 p0(4)/2]
axes('Position',p1)
plot(x(1:50),y(1:50),'b-')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by