From: Ali Arslan on 12 Jun 2010 14:32 A function I'm using has "display()" in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. Is there a way to suppress the output of this specific function? Ending the statement with semicolon obviously doesn't help. Thanks
From: Wayne King on 12 Jun 2010 14:56 "Ali Arslan" <ali_arslan(a)brown.edu> wrote in message <hv0jr5$2s9$1(a)fred.mathworks.com>... > A function I'm using has "display()" in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. > > Is there a way to suppress the output of this specific function? Ending the statement with semicolon obviously doesn't help. > Thanks Hi, If you don't want to remove the line with display from the program. Then just put a comment % in front of the line and save the program. Wayne
From: dpb on 12 Jun 2010 14:55 Ali Arslan wrote: > A function I'm using has "display()" in it (or other things that display > messages on command window), so it outputs a lot of things (x 1200) on > command line when I run my code, which makes things hard to track and > observe. > > Is there a way to suppress the output of this specific function? Ending > the statement with semicolon obviously doesn't help. AFAIK only by editing the m-file to remove (or comment out or add a debugging flag/logic to make less drastic more reversible changes). --
From: dpb on 12 Jun 2010 15:00 dpb wrote: .... > AFAIK only by editing the m-file to remove (or comment out or add a > debugging flag/logic to make less drastic more reversible changes). Or, to complete the thought; if it's possible the output could be useful but not on screen, modify to output to a log file instead of using disp(). Then, a flag could even be set to write/not or to make the output go to disk or terminal (since fid for fprintf can also be 1 for standard output (the screen) or 2 for standard error as well as a disk file lun from fopen() ). --
From: us on 12 Jun 2010 15:22 "Ali Arslan" <ali_arslan(a)brown.edu> wrote in message <hv0jr5$2s9$1(a)fred.mathworks.com>... > A function I'm using has "display()" in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. > > Is there a way to suppress the output of this specific function? Ending the statement with semicolon obviously doesn't help. > Thanks also, consider overloading DISPLAY/DISP... us
|
Next
|
Last
Pages: 1 2 Prev: calculate the difference between a Histogramm and a Laplace distribution Next: Rounding Values |