Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Opening and reading a file

Status
Not open for further replies.

WAMA

Marine/Ocean
Feb 13, 2007
1
I can't open and read a file containing a matrix with elements like 3.2590000e-002 2.4700000e-002
NaN NaN
-6.5000000e-002 -6.2000000e-002

I am using the commands: fid=fopen(file);

X=[num2str(ns) '_F_H_WH'];

WHT=fscanf(fid,'%e',91*85);
but there seems to be something wrong either with the NaN existing in the file, or with the fact that the folder can't be read as a matrix.Any suggestions??



















 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor