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:
matlab usage

Subject: matlab usage

From: doug kopet

Date: 15 Aug, 2010 18:00:05

Message: 1 of 4

hi,

i have a large application and was wondering if it is possible to automatically apply the semicolon ";" to all statements without individually having to do it.

please let me know,

dougy

Subject: matlab usage

From: ImageAnalyst

Date: 15 Aug, 2010 18:23:50

Message: 2 of 4

dougy:
It might be a nice feature to have it automatically add the semicolon
in the editor every time you hit enter. But you'd have to have a
shortcut way to turn it off (say, toggling on and off by typing
Control-; ) because I put in lots of comments in my code and I
wouldn't want it to add a semicolon when I'm entering in multiple
lines of comments. It would also have to be smart enough to check
that if the last non-white characters were ... (triple dots) then to
not add a semicolon since that means a line continuation. But this
feature is not part of MATLAB right now as far as I know.

Subject: matlab usage

From: Walter Roberson

Date: 15 Aug, 2010 18:37:38

Message: 3 of 4

doug kopet wrote:

> i have a large application and was wondering if it is possible to
> automatically apply the semicolon ";" to all statements without
> individually having to do it.

No, but you can evalc() to capture the output, and then just not show
it. However, if you did that, then anything specifically disp()'d or
fprintf(1,...)'d would also be captured.

Subject: matlab usage

From: doug kopet

Date: 15 Aug, 2010 19:22:03

Message: 4 of 4

good to know.
thanku

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