Skip to content

Commit

Permalink
Plots the PSD if no output argument specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Yan Michalevsky committed Feb 26, 2014
1 parent c88429c commit 558884b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions analyze_samples.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
Hs = spectrum.welch;
Hpsd = psd(Hs, samples, 'Fs', Fs);
A = lpc(samples);

if nargout < 1
plot(Hpsd);
end
end

0 comments on commit 558884b

Please sign in to comment.