How to use FFT on my data?
Afficher commentaires plus anciens
Réponse acceptée
Plus de réponses (2)
Patrik Soukup
le 26 Mar 2018
0 votes
1 commentaire
Star Strider
le 26 Mar 2018
The ‘L’ parameter is the length of the Hann window, in units of samples. (The purpose of the window functions is to reduce the effects of using a finite sequence to represent an infinite sequence.)
I use windows to design filters, and do not generally use them to calculate Fourier transforms, because they significantly distort the transformed data. My signal processing references only discuss them in the context of filters.
As I read my references, ‘L’ should be the length of your signal. See for example hanning ,hamming window in matlab? (link).
Patrik Soukup
le 5 Avr 2018
0 votes
3 commentaires
Star Strider
le 6 Avr 2018
I have no idea what you want.
Try this:
x = 0:99; % Create Data
y = rand(1,100); % Create Data
vert_lines = randi(99, 1, 5); % Vertical Line Location X-Values
figure
plot(x, y)
hold on
plot([vert_lines; vert_lines], repmat(ylim', 1, numel(vert_lines)), '-r', 'LineWidth',2)
hold off
grid
Patrik Soukup
le 6 Avr 2018
Modifié(e) : Patrik Soukup
le 6 Avr 2018
Star Strider
le 6 Avr 2018
The default line width is 0.5 points. It may be that it is not possible to define a line width less than that. I cannot find that specific information in the documentation, so I do not know for sure.
Catégories
En savoir plus sur Get Started with Signal Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


