|
From: | Ismael Núñez-Riboni |
Subject: | Re: textread substitution |
Date: | Tue, 18 Dec 2012 20:33:02 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
I need to get a vector in wich every cell is an entire row of this file (and not a matrix with a single letter for every cell). Can you help me ?
Use fgets and make an array of cells (I'm not running this code, i.e., it might have errors):
fid = fopen(yorfile); linea = 1; k = 1; while linea > 0 linea = fgets(fid); % this is -1 if you reach eof if linea > 0 ll{k} = linea; end k = k +1; end fclose(fid);
[Prev in Thread] | Current Thread | [Next in Thread] |