I have data in Workspace in matlab (time domain). Frequency domain (FFT) responses are computed using MATLAB functions utilizing the data obtained from Workspace. How can help me to get FFT from my time domain signal stored in workspace.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
vahid torabi
il 20 Lug 2015
Commentato: vahid torabi
il 20 Lug 2015
get FFT from signal stored in workspace. the signal stored in workspace is .mat data.
0 Commenti
Risposta accettata
Walter Roberson
il 20 Lug 2015
data_struct = load('TheFileName.mat');
varnames = fieldnames(datastruct);
time_domain_data = data_struct.(varnames{1});
freq_data = fft(time_domain_data);
If you know the name of the variable the data is stored in in the .mat file then you can use it directly. For example if you know the data is stored in qx83t then you can use
data_struct = load('TheFileName.mat');
time_domain_data = data_struct.qx83t;
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Vibration Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!