📄 samp2_10.m
字号:
%Samp2_10
n=1:10; %序号序列
x=rand(1,10); %rand产生的随机值序列
subplot(2,1,1),stem(n,x); %绘制随机序列
xlabel('n');ylabel('x1(n)');title('rand产生的随机序列');
grid on;
x=randn(1,10); %randn产生的随机值序列
subplot(2,1,2),stem(n,x);hold on;plot(n,zeros(1,10)) %绘制横轴
xlabel('n');ylabel('x2(n)');title(' randn产生的随机序列');
grid on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -