필터 지우기
필터 지우기

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 (최근 30일)
get FFT from signal stored in workspace. the signal stored in workspace is .mat data.

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 20일
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;
  댓글 수: 2
vahid torabi
vahid torabi 2015년 7월 20일
I applied your code on my .mat data but it didn't work! I attached my .mat data, please check to know it works or it doesn't work.Thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by