Creating a pulse for thermal noise

5 vues (au cours des 30 derniers jours)
Shahar ben ezra
Shahar ben ezra le 20 Sep 2021
Commenté : Shahar ben ezra le 21 Sep 2021
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

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 20 Sep 2021
Modifié(e) : Fangjun Jiang le 20 Sep 2021
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');

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by