| MATLAB Central > MATLAB Newsreader > semi-colon suppress output of user defined functio... |
|
|
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 12 May, 2011 18:42:05 Message: 1 of 16 |
|
I have a function that I've written that prints some text to the command window. I'd like to have that text not show up if the function is called with a semi-colon after it: |
|
Subject: semi-colon suppress output of user defined function From: dpb Date: 12 May, 2011 18:58:16 Message: 2 of 16 |
|
On 5/12/2011 1:42 PM, Ben wrote: |
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 12 May, 2011 19:49:05 Message: 3 of 16 |
|
dpb <none@non.net> wrote in message <iqhak9$rer$1@speranza.aioe.org>... |
|
Subject: semi-colon suppress output of user defined function From: dpb Date: 12 May, 2011 21:47:43 Message: 4 of 16 |
|
On 5/12/2011 2:49 PM, Ben wrote: |
|
Subject: semi-colon suppress output of user defined function From: Rune Allnor Date: 13 May, 2011 04:48:43 Message: 5 of 16 |
|
On May 12, 8:42 pm, "Ben " <ben-wal...@northwestern.edu> wrote: |
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 13 May, 2011 14:28:04 Message: 6 of 16 |
|
My thanks for your posts, time, and thoughts. |
|
Subject: semi-colon suppress output of user defined function From: Andy Date: 13 May, 2011 14:44:05 Message: 7 of 16 |
|
The problem you're having is that the semicolon suppresses OUTPUT (that is, will not display the RETURNED values). 'Output' does not refer to all data printed to the command line during execution. |
|
Subject: semi-colon suppress output of user defined function From: Steven_Lord Date: 13 May, 2011 15:48:08 Message: 8 of 16 |
|
|
|
Subject: semi-colon suppress output of user defined function From: Steven_Lord Date: 13 May, 2011 15:51:00 Message: 9 of 16 |
|
|
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 13 May, 2011 16:15:05 Message: 10 of 16 |
|
"Andy" wrote in message <iqjg3l$570$1@newscl01ah.mathworks.com>... |
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 13 May, 2011 16:22:04 Message: 11 of 16 |
|
"Steven_Lord" <slord@mathworks.com> wrote in message <iqjk14$irg$1@newscl01ah.mathworks.com>... |
|
Subject: semi-colon suppress output of user defined function From: Andy Date: 13 May, 2011 16:24:05 Message: 12 of 16 |
|
"Ben" wrote in message <iqjle9$no8$1@newscl01ah.mathworks.com>... |
|
Subject: semi-colon suppress output of user defined function From: Ben Date: 13 May, 2011 16:45:09 Message: 13 of 16 |
|
"Andy" wrote in message <iqjlv5$pg0$1@newscl01ah.mathworks.com>... |
|
Subject: semi-colon suppress output of user defined function From: dpb Date: 13 May, 2011 16:59:14 Message: 14 of 16 |
|
On 5/13/2011 10:48 AM, Steven_Lord wrote: |
|
Subject: semi-colon suppress output of user defined function From: Scott Date: 12 Jul, 2011 20:08:11 Message: 15 of 16 |
|
dpb <none@non.net> wrote in message <iqjo10$hj$1@speranza.aioe.org>... |
|
Subject: semi-colon suppress output of user defined function From: someone Date: 12 Jul, 2011 21:00:47 Message: 16 of 16 |
|
"Ben" wrote in message <iqjn6l$e1$1@newscl01ah.mathworks.com>... |
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.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| command history | Ben | 12 May, 2011 14:43:37 |
| semicolon | Ben | 12 May, 2011 14:43:37 |
| suppress output | Ben | 12 May, 2011 14:43:37 |
