printing information in matlab command-line

printing information in matlab command-line

Post by ilyasov » Wed, 11 Oct 2006 04:47:51


hello, how can i print formatted output to matlab command line? as we
do it" printf("the output is %d", k) ; " in
C language. any help is appreciated..regards
 
 
 

printing information in matlab command-line

Post by Dan Pearc » Wed, 11 Oct 2006 05:11:11

sprintf('the output is %d', k)

Note the use of apostrophes rather than speech marks and the function
change to sprintf

 
 
 

printing information in matlab command-line

Post by PB » Wed, 11 Oct 2006 05:23:36

On 2006-10-09 21:47 ilyasova said the following:

Read:

help printf

/PB

--
"Never attribute to malice that which can be adequately explained by
stupidity."
 
 
 

printing information in matlab command-line

Post by Christophe » Wed, 11 Oct 2006 06:00:34


help fprintf
 
 
 

printing information in matlab command-line

Post by PB » Wed, 11 Oct 2006 06:34:02

On 2006-10-09 23:00 Christopher Hulbert said the following:


That was what I was trying to say, apparently i missed a f.

/PB

--
"Never attribute to malice that which can be adequately explained by
stupidity."
 
 
 

printing information in matlab command-line

Post by NZTideMa » Wed, 11 Oct 2006 08:57:29


"When I use a term, it means whatever I choose it to mean - nothing
more, and nothing less." Humpty Dumpty in Through the Looking Glass