Child pages
  • Hyak MATLAB programming

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Matlab STDOUT, STDERR, STDIN

In fprintf( ), fileID=1 is for printing to STDOUT and fileID=2 is for printing to STDERR

See below for more information on fprintf()

https://www.mathworks.com/help/matlab/ref/fprintf.html

Use below to get string data from STDIN

str x = input('', 's')

See below for more information on input()

...