Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Feb 13, 2007
Messages
1
Location
GR
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??



















 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top