Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: help
Replies: 2   Last Post: Jul 1, 1996 4:31 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Lu Tao

Posts: 6
Registered: 12/7/04
help
Posted: Jun 30, 1996 7:47 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Anyone know what's wrong with the following code?
>> fid=fopen('test.txt','w');
>> a=1.1;
>> fprintf(fid,'%12.8f',a);
>> fclose(fid);
>> fid=fopen('test.txt','r');
>> b=fscanf(fid,'%12.8f')


b =

[]

While I actually want b=1.1
Thanx.

--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_T_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(ul).-'' (lu).' ((!.-'

Tao Lu (4tl1@qlink.queensu.ca))
home page http://qlink.queensu.ca/~4tl1/

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~





Date Subject Author
6/30/96
Read help
Lu Tao
7/1/96
Read Re: help
Gaby Gniss
7/1/96
Read Re: help
Japie Mare

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.