Plotting Issue? Conversion of one type of plot to other?
1 回表示 (過去 30 日間)
古いコメントを表示
There is one plot like this
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
want to convert like
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
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;
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!