필터 지우기
필터 지우기

Ploting a graph on two x-axis and two y-axis

조회 수: 1 (최근 30일)
Renuka
Renuka 2014년 3월 28일
답변: Azzi Abdelmalek 2014년 3월 28일
Dear Image Analyst, Sir, I want to plot a graph with two x-axis and with two y-axis. Lower x axis range should be 0 to 10,Upper x-axis should be 5 to 45.On y axis black and white ratio which is varying.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 28일
Look at this example
x1=0:0.1:10;
x2=5:0.1:45;
y1=cos(x1);
y2=5*sin(x2);
[ax,h1,h2]=plotyy(x1,y1,x2,y2)
set(ax(2),'XAxisLocation','top','xlim',[5 45])
set(ax(1),'xlim',[0 10])

카테고리

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