From: Matteo on
dpb <none(a)non.net> wrote in message <hmhnh1$27e$1(a)news.eternal-september.org>...
> dpb wrote:
> ...
>
> > You might try adding the optional second return argument 'position' that
> > you could see how far it got both after first and last calls.
> > Particularly the first and inspection of the file might indicate
> > something useful. There don't appear to be any error messages,
> > unfortunately.
>
> Specifically, I'm wondering where it left the file pointer at completion
> of the first (apparently successful) read and the existence of newline,
> etc., in the file at that point and where it failed subsequently.
>
> --

Sorry it took me so long to get back to this. New dad duties. :-)
Yes, you were absolutely correct. I needed to add one more to go to the next line over.

i.e.
fid=fopen('test.txt');
for k=1:2
test(:,:,k)=textscan(fid,'%f32',502,'headerlines',1);
end

Thank you so much for the tip
 | 
Pages: 1
Prev: HELP PLEASE
Next: Pulling Structure From Images