How can i plot a signal with amplitude, phase and frequency?

14 views (last 30 days)
you have a signal y=sin(t), t=[1:0.01:2]. plot this signal with amplitude 7, phase 11.14 and frequency 9. how can i plot the graph with the Amplitude 7, Phase 11.14 and frequency 9?

Accepted Answer

KSSV
KSSV on 31 Oct 2016
Edited: KSSV on 31 Oct 2016
t = 1:0.01:2 ;
amp = 7 ;
phase = 11.14 ;
f = 9 ; % I am assuming it as Hertz
y = amp*sin(2*pi*f*t+phase) ;
plot(t,y)

More Answers (1)

Ashwary Gupta
Ashwary Gupta on 29 Jul 2021
t = 1:0.01:2 ;
amp = 7 ;
phase = 11.14 ;
f = 9 ; % I am assuming it as Hertz
y = amp*sin(2*pi*f*t+phase) ;
plot(t,y)

Community Treasure Hunt

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

Start Hunting!