⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 even_odd_c.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
% Name: Even_Odd_c.m
clear,close all,
t=-3:0.01:3;
x=input('Type in the continuous-time siganl x(t)=');%(t+2).*(u(t+2)-u(t))-(t-2).*(u(t)-u(t-2));
xe=(x+fliplr(x))/2;%(t+4).*(u(t+4)-u(t+2))-t.*(u(t+2)-u(t))-t.*(u(t)-u(t-2))+(t-4).*(u(t-2)-u(t-4));
xo=(x-fliplr(x))/2;%(n+4).*(u(n+4)-u(n))-(n-4).*(u(n)-u(n-4));
subplot(311)
plot(t,x,'r')
title('The original signal x(t)')
xlabel('Time t')
grid on
subplot(312)
plot(t,xe,'r')
title('The even part')
xlabel('Time t')
grid on
subplot(313)
plot(t,xo,'r')
title('The odd part')
xlabel('Time t')
grid on

⌨️ 快捷键说明

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