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')

Réponses (1)

Walter Roberson
Walter Roberson le 16 Sep 2016

1 vote

2 commentaires

raizal muttaqin
raizal muttaqin le 16 Sep 2016
please give me more detail about what should i do to my code. thanks...
Walter Roberson
Walter Roberson le 16 Sep 2016
You follow the example there, but substituting your own data.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by