Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How do I get Matlab to recognise a text file as numerical values when importing it ?

1 visualización (últimos 30 días)
I need to input all the data from this file into Matlab but have it recognize the txt as numerical values. I struggling on how to do that.
The file is at this link:

Respuestas (2)

George
George el 8 de Nov. de 2016
Check out the formatSpec portion of the textscan doc.

Walter Roberson
Walter Roberson el 8 de Nov. de 2016
%load a copy of the file locally
url = 'https://coastwatch.glerl.noaa.gov/statistic/ice/dat/g2011_2012_ice.dat'
tfile = [tempname '.dat'];
urlwrite(url, tfile);
%read it in
data = readtable(tfile);

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by