信号在MATLAB中的运算——连续信号的尺度变换

文章展示了如何使用MATLAB进行连续信号的尺度变换,包括矩形波和三角波的例子。当尺度因子a变化时,信号沿时间轴相应地被压缩或扩展。例如,a>1时信号压缩,a<1时信号扩展。提供了相关MATLAB代码实现不同尺度下的信号显示。
摘要由CSDN通过智能技术生成

信号在MATLAB中的运算——连续信号的尺度变换

连续信号的尺度变换

连续时间信号的尺度变换,是指将信号的横坐标进行扩展或者压缩,即将信号 f(t) 的自变量 t 更换为 at,当 a>1 时,信号 f(at) 以原点为基准,沿时间轴压缩到原来的1/a ;当 a<1 时,信号 f(at) 沿时间轴扩展到原来的 1/a 倍;

1、矩形波的尺度变换示例

% E_5_13.m
% 矩形波的尺度变换示例
clear, clc, clf;
t = -4:0.001:4;
T = 2;
f = rectpuls(t,T);
subplot(311); plot(t,f); 
axis([-4,4, -0.5,1.5]); title('原序列'); grid on;
xlabel('t'); ylabel('f(t)');

ft = rectpuls(2*t,T);
subplot(312); plot(t,ft); 
axis([-4,4, -0.5,1.5]); title('2t后的序列'); grid on;
xlabel('t'); ylabel('f(2t)');

ft2 = rectpuls(0.5*t,T);
subplot(313); plot(t,ft2); 
axis([-4,4, -0.5,1.5]); title('0.5t后的序列'); grid on;
xlabel('t'); ylabel('f(0.5t)');

2、三角波的尺度变换

% E_5_14.m
% 三角波的尺度变换
figure
t = -5:0.001:5;
ft = tripuls(t,4,0.5);
subplot(311); plot(t,ft);
title('原序列'); grid on;
xlabel('t'); ylabel('f(2t)');

ft = tripuls(3*t,4,0.5);
subplot(312); plot(t,ft);
title('3t后的序列'); grid on;
xlabel('t'); ylabel('f(3t)');

ft2 = tripuls(0.5*t,4,0.5);
subplot(313); plot(t,ft2);
title('0.5t后的序列'); grid on;
xlabel('t'); ylabel('f(0.5t)');

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值