Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: really simple, stupid question

Subject: really simple, stupid question

From: grub_snuffler@yahoo.com

Date: 5 Aug, 2007 04:25:56

Message: 1 of 4


Is there a "+=" operator (and its relatives) in Matlab? I can't seem
to find mention of one anywhere, and I find it a little surprising.

Thanks.

- John

Subject: really simple, stupid question

From: us

Date: 5 Aug, 2007 10:11:44

Message: 2 of 4

grub_snuffler:
<SNIP assignment/increment ops evergreen...

> Is there a "+=" operator (and its relatives) in Matlab...

this matter has been discussed here on CSSM...
just search for, eg,

     c++ operator
     increment operator

here

http://groups.google.com/group/comp.soft-sys.matlab/topics?
hl=en&safe=off

us

Subject: really simple, stupid question

From: Dave Robinson

Date: 5 Aug, 2007 10:16:46

Message: 3 of 4

 grub_snuffler@yahoo.com wrote in message
<1186287956.171462.160460@k79g2000hse.googlegroups.com>...
>
> Is there a "+=" operator (and its relatives) in Matlab? I
can't seem
> to find mention of one anywhere, and I find it a little
surprising.
>
> Thanks.
>
> - John
>

Hi John

As far as I know

YourValue += 15; in C(++)

would need to be implemented as

YourValue = YourValue + 15; in Matlab

Hope that helps

Dave Robinson

Subject: really simple, stupid question

From: grub_snuffler@yahoo.com

Date: 5 Aug, 2007 13:31:44

Message: 4 of 4

On Aug 5, 6:11 am, "us " <u...@neurol.unizh.ch> wrote:
> grub_snuffler:
> <SNIP assignment/increment ops evergreen...
>
Thanks. I did a search for it using "+=" in Google, but Google chokes
on the syntax, oddly enough. And "plus equal" got me nowhere.

I'll try again.

> > Is there a "+=" operator (and its relatives) in Matlab...
>
> this matter has been discussed here on CSSM...
> just search for, eg,
>
> c++ operator
> increment operator
>
> here
>
> http://groups.google.com/group/comp.soft-sys.matlab/topics?
> hl=en&safe=off
>
> us


Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
evergreen us 30 Jan, 2008 20:28:47
increment operator us 5 Aug, 2007 06:15:06
assignment operator us 5 Aug, 2007 06:15:06
reference us 5 Aug, 2007 06:15:06
c us 5 Aug, 2007 06:15:06
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics