How to load a .dat file?

2 visualizzazioni (ultimi 30 giorni)
milksba
milksba il 6 Mag 2018
Modificato: milksba il 6 Mag 2018
How to load a .dat file? I saved the Oscilloscope(waverunner 610zi) Please refer to the attached file and let me know.
  3 Commenti
milksba
milksba il 6 Mag 2018
Can you check it again?
Ameer Hamza
Ameer Hamza il 6 Mag 2018
Yes, the file now contains the data. Please check my answer below.

Accedi per commentare.

Risposta accettata

Ameer Hamza
Ameer Hamza il 6 Mag 2018
Modificato: Ameer Hamza il 6 Mag 2018
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 Commenti
Ameer Hamza
Ameer Hamza il 6 Mag 2018
What is the error?
milksba
milksba il 6 Mag 2018
Modificato: milksba il 6 Mag 2018
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Large Files and Big Data 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!

Translated by