Problem with textread



Hello, I have a source file of this kind:
X Y
11.37 19.05
17.49 18.68
23.86 18.68
30.06 18.63
.......

I need to create a vector (or a matrix) which contains the
numbers.

I have used a string of this kind:

[x,y]=textread('Coordinates Core.txt','%f %f','endofline',...
'\r\n','delimiter',' ','headerlines',1)';

But al the time that I run the file.m I've an error that is:

??? Error using ==> dataread
Number of outputs must match the number of unskipped input
fields.

Error in ==> textread at 177
[varargout{1:nlhs}]=dataread('file',varargin{:});

Error in ==> Defcoordinates at 18
[x,y]=textread('Coordinates Core.txt','%f %f','endofline',...


I really don't understant what is the problem...

I'm please if you can help me.

Luca
.



Relevant Pages

  • Re: single quote
    ... The error message is: ... Trouble reading literal string from file (row 1, ... Error in ==> textread at 177 ... If I run the program with the original command ...textread ...
    (comp.soft-sys.matlab)
  • Re: Help wiith textread
    ... I am having trouble importing a text file. ... textread, but cannot figure out how to load a specific file. ... string using some tricks. ...
    (comp.soft-sys.matlab)
  • textread
    ... I have been using textread to import some of my data that are in .txt ... program I use to collect it stamps a time/date (string) at consistent ... Is there a way to do this all in Matlab? ... time/date stamp in each column. ...
    (comp.soft-sys.matlab)
  • Re: File read: a combination of integers and strings
    ... string, and not necessarily a single string, it can be composed of multiple ... textread() worked fine here... ... 'East Asian' ... 'Euro-American' ...
    (comp.soft-sys.matlab)
  • Re: File read: a combination of integers and strings
    ... string, and not necessarily a single string, it can be composed of multiple ... textread() worked fine here... ... 'East Asian' ... 'Euro-American' ...
    (comp.soft-sys.matlab)