通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 8781|回复: 2

[话题讨论] Matlab小问题 [复制链接]

军衔等级:

  列兵

注册:2017-11-25
发表于 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');
究竟是什么意思呢

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

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

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

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

举报本楼

军衔等级:

  列兵

注册:2017-11-25
发表于 2020-1-6 16:30:14 |显示全部楼层
额。。。不截图没看出来,截图发现还是挺明显的。。。。

举报本楼

军衔等级:

  新兵

注册:2019-7-3
发表于 2020-2-17 21:05:00 来自手机 |显示全部楼层
y方向反转了吧,螺旋的方向不一样?

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

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

GMT+8, 2024-3-29 21:11 , Processed in 0.087374 second(s), 18 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部