Re: Problem with reading a Data File
- From: Michael Wild <themiwi.REMOVE.THIS@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 13:33:07 +0200
Sanaul Haq wrote:
Hi,
I got stuck with reading a Data file using matlab which actually
consist of floating point numbers. I think the data which i read
is in Binary format because it doesnot work with Load command.
i am using the following commands to read it.
fid=fopen('filename','r');
A = fread(fid); %(A is displayed as decimal number from 0 to 255)
disp(char(A'));
The last command display the data in rectangular boxes and different
Symbols but doesnot display floating point numbers.
How should i solve this problem.
Sana Khan
because char(A) interprets the numbers as ascii code, and quite a few of them have no visual representation (such as ESC or BELL). what are you trying to do anyways? how does the file look if you open it in an editor, e.g. by typing
edit filename
where filename is the name of the file. is it readable or just garbage?
michael
.
- References:
- Problem with reading a Data File
- From: Sanaul Haq
- Problem with reading a Data File
- Prev by Date: Re: timeout
- Next by Date: Re: Finding Lat Lon With Mouse
- Previous by thread: Problem with reading a Data File
- Next by thread: Re: Problem with reading a Data File
- Index(es):
Relevant Pages
|