通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

  列兵

注册:2017-11-25
跳转到指定楼层
1#
发表于 2020-1-6 16:14:24 |只看该作者 |倒序浏览
买了一本陈老师@chenaijun的《深入浅出通信原理》书,结合论坛的 原帖看,用Matlab仿陈老师写的程序时,有点小问题
程序
t=0:0.001:10;
x=cos(2*pi*t);
subplot(2,1,1);plot3(x,t,0*t);
set(gca,'YDir','reverse');
grid on;
x=cos(2*pi*t);
y=sin(2*pi*t);
subplot(2,1,2);plot3(x,t,y);
set(gca,'YDir','reverse');
grid on;



程序
t=0:0.001:10;
x=cos(2*pi*t);
subplot(2,1,1);plot3(x,t,0*t);
set(gca,'YDir','normal');
grid on;
x=cos(2*pi*t);
y=sin(2*pi*t);
subplot(2,1,2);plot3(x,t,y);
set(gca,'YDir','normal');


一样啊
set(gca,'YDir','normal');  和 set(gca,'YDir','reverse');
究竟是什么意思呢

图形1.png (38.13 KB, 下载次数: 0)

set(gca,'YDir','normal');

set(gca,'YDir','normal');

图形2.png (42.1 KB, 下载次数: 0)

set(gca,'YDir','reverse');

set(gca,'YDir','reverse');

举报本楼

本帖有 2 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-4-29 03:14 , Processed in 0.100145 second(s), 18 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部