Info

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

HOW TO SAVE MAT 2 ASCII FILE?

1 visualización (últimos 30 días)
della tan
della tan el 19 de Jul. de 2018
Cerrada: della tan el 19 de Jul. de 2018
Anyone pls help. How to save matlab to ascii file?
this is what I do so far
ncol = 66;
fmt = repmat('%f', 1, ncol);
filename = 'j3p0001c070.asc';
fid = fopen(filename, 'rt');
data = cell2mat( textscan(fid, fmt, 'HeaderLines', 74, 'CollectOutput',10, 'TreatAsEmpty', '*') );
fclose(fid);
data(isnan(data)) = -99.9999;
  6 comentarios
della tan
della tan el 19 de Jul. de 2018
thanks... its work :)
but, as you can see in my script, i want to save ascii file to ascii file.. yeah just because I have to change Nan to several number.
so, my question is how to save ascii file to ascii file? Thanks for your help
KSSV
KSSV el 19 de Jul. de 2018
how to save ascii file to ascii file? *:(*

Respuestas (0)

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