Thread View: comp.soft-sys.matlab
2 messages
2 total messages
Started by nallepilli.s.ramesh
Mon, 25 Jan 1993 23:20
scanf() function in matlab ?
Author: nallepilli.s.ramesh
Date: Mon, 25 Jan 1993 23:20
Date: Mon, 25 Jan 1993 23:20
11 lines
874 bytes
874 bytes
Hi! I have the student edition of Matlab, and have a rather simple question! Is there an equivalent to the C function 'scanf()' in Matlab. I would like to sequentially read an ASCII file, process it, and ship out using printf(). I don't want to read the whole file into a single vector. (It is too long) Thanks N. Ramesh -- N. Ramesh (ramesh@whservd.att.com) ATT Bell Labs, Whippany NJ.
Re: scanf() function in matlab ?
Author: Ray Zimmerman
Date: Tue, 26 Jan 1993 14:48
Date: Tue, 26 Jan 1993 14:48
21 lines
1696 bytes
1696 bytes
In article <1993Jan25.232041.10233@cbnewsl.cb.att.com>
nallepilli.s.ramesh, ramesh@cbnewsl.cb.att.com writes:
>Hi! I have the student edition of Matlab, and have a rather simple
question!
>Is there an equivalent to the C function 'scanf()' in Matlab. I would
like
>to sequentially read an ASCII file, process it, and ship out using
printf().
Sorry, not in the current student version. Matlab 4.0 has "fscanf" and
"sscanf". And a few days ago I thought I saw a post of someone saying
they'd written some MEX files for 3.5 to do this. I don't remember if
Student Matlab does MEX files.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Ray Zimmerman \ 397 Theory Center, Electrical Engineering
\ Cornell University, Ithaca NY 14853
Ray-Zimmerman@cornell.edu \ Phone: 607-254-8819 Fax: 607-255-9072
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
"The number you have dialed is imaginary.
Rotate phone 90 degrees and try again."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads