# Creating a pulse for thermal noise

3 views (last 30 days)
Shahar ben ezra on 20 Sep 2021
Commented: Shahar ben ezra on 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
##### 0 CommentsShow -2 older commentsHide -2 older comments

Sign in to comment.

### Accepted Answer

Fangjun Jiang on 20 Sep 2021
Edited: Fangjun Jiang on 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');
##### 1 CommentShow -1 older commentsHide -1 older comments
Shahar ben ezra on 21 Sep 2021

Sign in to comment.

### Categories

Find more on Annotations in Help Center and File Exchange

R2020b

### Community Treasure Hunt

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

Start Hunting!