Plotting Issue? Conversion of one type of plot to other?

조회 수: 1 (최근 30일)
RS
RS 2013년 7월 23일
There is one plot like this
want to convert like
in second plot there is no x axis values and continuous y axis line, How can I improve code for plot to convert to second one? For result point of view I have edited second one in paint.
x=[];
y1=[];
yy1=[];
figure;
subplot(2,1,1);
hold on;
plot(x,y1, 'r');
plot(x,y2, 'g');
hold off;
subplot(2,1,2);
hold on;
plot(x,yy1, 'r');
plot(x,yy2, 'g');
hold off;

답변 (1개)

Dishant Arora
Dishant Arora 2013년 7월 23일
set(gca, 'xcolor' ,[1 1 1] ,'xtick' ,[])
x - axis is still there, but it just makes it invisible by setting axis color to white.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by