señalesmuestreadas.m

来自「Muestreo de se帽ales en matlab」· M 代码 · 共 100 行

M
100
字号
clc

clear all;


T=.5;

t=[-4:T:4];

x=sin(t);

y=round(x);


T1=.5;

t1=[-4:T1:4];

x1=2*sin(t1-1);

y1=round(x1);



subplot(221)

plot(t,x,'b'); grid on;

xlabel('Time')

ylabel('Amplitude')

title('Gr醘ica de Se馻l Continua')

subplot(222)

stem(t,y,'b'); grid on; 

xlabel('Time')

ylabel('Amplitude')

title('Gr醘ica Se馻l Muestreado de Datos')

subplot(223)

plot(t1,x1,'r'); grid on;

xlabel('Time')

ylabel('Amplitude')

title('Gr醘ica de Se馻l Continua')

subplot(224)

stem(t1,y1,'r'); grid on; 

xlabel('Time')

ylabel('Amplitude')

title('Gr醘ica Se馻l Muestreado de Datos')


%SUMA

s1=y

s2=y1

s=s1+s2


%MULTIPLICACION

m=3*s1

m2=5*s2


%PRODUCTO

p=(y).*(y1)


%CORRIMIENTO

c=s1-1

c2=s2+1


%INVERTIDO

i=-s1

i2=-s2

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?