Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

read a specific part from an ASCII file in matrix format

Status
Not open for further replies.

kamilteke

Geotechnical
Oct 18, 2006
1
A long file i have. I want to take a specific part of it. I have the following codes. But after restricting the part of the file i want to read I can not take the part as a matrix format.

fid1=fopen('050912.out','r');
str=fread(fid1,'*char').';
boundary=regexp(str,'\s*at\s*obs\s*epoch\s*length\s*(.*)\s*\s*EARTH\s*ORIENTATION\s*PARAMETERS','tokens');
bound=boundary{:}{:};

The preceding code takes the part that i want to use from the file '050912.out' but into a cell not in a matrix format. Help me please.
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor