how to show frequency domain?

hi, i'm begginer in matlab and i have question how to show the frequency domain for this code:
t = linspace(-2*pi,2*pi,200);
sinyal = sin(t); %Sinyal Asli
sigma = 0.07; %Standar Deviasi Noise
sinyaln = sinyal + sigma*randn(size(signal)); %Sinyal + Noise
subplot(211)
plot(t,sinyal); axis([-8 8 -2 2]);
title('Sinyal Asli')
subplot(212)
plot(t,sinyaln); axis([-8 8 -2 2]);
title('Sinyal + Noise')

Answers (1)

Walter Roberson
Walter Roberson on 16 Sep 2016

2 Comments

please give me more detail about what should i do to my code. thanks...
You follow the example there, but substituting your own data.

Sign in to comment.

Asked:

on 16 Sep 2016

Commented:

on 16 Sep 2016

Community Treasure Hunt

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

Start Hunting!