Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: [Q] How to get the fastest speed ?
Replies: 1   Last Post: Oct 30, 1996 12:51 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kevin Hung []

Posts: 6
Registered: 12/7/04
[Q] How to get the fastest speed ?
Posted: Oct 26, 1996 7:51 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone,

I have a question about Matlab speed. Is it always true that
a vectorized code is always faster than non-vectorized code
(using for loop or while loop) ?

For example in simulating a communications system, we can
create a very long vector (say 1e6 elements) and prcoess this
long vector once. On the other hand, we can also create 10 short
vectors (say 1e5 elements) and repeat the same processings on the
10 vectors.

So which method results in a faster code ?


Thanks for your help !!!


Kevin Hung





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.