Creating a pulse for thermal noise

5 次查看(过去 30 天)
Hi
How can I start my Y-axis from -174
And not from 0?
*Example drawing
clc,clear
Hz = 10;
Amp = -164;
x = -10:0.01:10;
% a pulse function
f = @(xi,a,b) a*rectpuls(xi,b);
% plot to
plot(x,f(x,Amp,Hz),'b--');
title(['Pulse']);
xlabel('Freq');
ylabel('Amplitude');
TNX

采纳的回答

Fangjun Jiang
Fangjun Jiang 2021-9-20
编辑:Fangjun Jiang 2021-9-20
clc,clear
Hz = 10;
Amp = 10;
x = -10:0.01:10;
% a pulse function
f = @(xi,a,b) a*rectpuls(xi,b)-174;
% plot to
plot(x,f(x,Amp,Hz),'b--');
title(['Pulse']);
xlabel('Freq');
ylabel('Amplitude');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by