How to load a .dat file?

조회 수: 7 (최근 30일)
milksba
milksba 2018년 5월 6일
편집: milksba 2018년 5월 6일
How to load a .dat file? I saved the Oscilloscope(waverunner 610zi) Please refer to the attached file and let me know.
  댓글 수: 3
milksba
milksba 2018년 5월 6일
Can you check it again?
Ameer Hamza
Ameer Hamza 2018년 5월 6일
Yes, the file now contains the data. Please check my answer below.

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

채택된 답변

Ameer Hamza
Ameer Hamza 2018년 5월 6일
편집: Ameer Hamza 2018년 5월 6일
You can import the file easily by import tool
uiimport
but if you want to import it programatically, do it like this
f = fopen('M1--L10-22 TR SW--00000.dat');
data = textscan(f, '%f %f');
data = cell2mat(data); % convert to matrix from cell array
fclose(f)
  댓글 수: 5
Ameer Hamza
Ameer Hamza 2018년 5월 6일
What is the error?
milksba
milksba 2018년 5월 6일
편집: milksba 2018년 5월 6일
Complete verification.
I have another question. Can you solve it?
I want to draw the corresponding file, Waveform, FFT file.
But I think my coding has a problem. Can you look at it?
I want to set the frequency in MHz
The code is in the zip file.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by