| MATLAB Central > MATLAB Newsreader > Vectorizing Double For Loops |
|
|
|
So I am having trouble vectorizing double for loops so they are more efficient... |
|
Your double For loop can be written as: |
|
"omegayen " <omegayen@ameritech.net> wrote in message <h4ttp3$acv$1@fred.mathworks.com>... |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <h4u1m5$dm2$1@fred.mathworks.com>... |
|
"omegayen " <omegayen@ameritech.net> wrote in message <h520qu$eo4$1@fred.mathworks.com>... |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <h522l2$745$1@fred.mathworks.com>... |
|
This is faster than the bsxfun soln anyway for n = 300. |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message <h524db$pp3$1@fred.mathworks.com>... |
|
"omegayen " <omegayen@ameritech.net> wrote in message <h535bi$2hl$1@fred.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 |
| reference | Sprinceana | 31 Jul, 2009 02:07:55 |
| bsxfun | Sprinceana | 31 Jul, 2009 02:07:55 |
| vectorize for l... | Sprinceana | 31 Jul, 2009 02:07:36 |
Contact us at files@mathworks.com
