Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Which function in Matlab is the same as "Read(*,*)"in Fortran!!!

Subject: Which function in Matlab is the same as "Read(*,*)"in Fortran!!!

From: Wds

Date: 18 Nov, 2002 12:29:30

Message: 1 of 3

My Dears:
   I am a freshman and studying Matlab!
   I only know how to import data into the file of Matlab,but now I want to
read data when program runs firstly!
   In Fortran,there is "Read(*,*)",in Matlab which function is the same as
"Read(*,*)" in Fortran!
   Thanks!!!

Subject: Which function in Matlab is the same as "Read(*,*)"in Fortran!!!

From: Randy Poe

Date: 18 Nov, 2002 12:01:34

Message: 2 of 3

Wds wrote:
> My Dears:
> I am a freshman and studying Matlab!
> I only know how to import data into the file of Matlab,but now I want to
> read data when program runs firstly!
> In Fortran,there is "Read(*,*)",in Matlab which function is the same as
> "Read(*,*)" in Fortran!
> Thanks!!!

I'm not sure what you mean exactly, because
read(*,*) in FORTRAN reads free-formatted input from
the standard input (the terminal), not from a file.

Do you want to get input directly from a user? Or
from a file?

See "help input" for reading from the user, and
"help fscanf" for reading from a file. I'm sure you'll
have more questions once you read those articles.

          - Randy

Subject: Which function in Matlab is the same as "Read(*,*)"in Fortran!!!

From: Wds

Date: 19 Nov, 2002 10:31:16

Message: 3 of 3

Thanks very much,my dear freind---Randy!!!

"Randy Poe" <rpoe@nospam.com> ??????:arb6df025ou@enews2.newsguy.com...
> Wds wrote:
> > My Dears:
> > I am a freshman and studying Matlab!
> > I only know how to import data into the file of Matlab,but now I want
to
> > read data when program runs firstly!
> > In Fortran,there is "Read(*,*)",in Matlab which function is the same
as
> > "Read(*,*)" in Fortran!
> > Thanks!!!
>
> I'm not sure what you mean exactly, because
> read(*,*) in FORTRAN reads free-formatted input from
> the standard input (the terminal), not from a file.
>
> Do you want to get input directly from a user? Or
> from a file?
>
> See "help input" for reading from the user, and
> "help fscanf" for reading from a file. I'm sure you'll
> have more questions once you read those articles.
>
> - Randy
>

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us