| MATLAB Central > MATLAB Newsreader > Incredibly slowed down code when calling a func... |
|
|
|
Subject: Incredibly slowed down code when calling a function. How to efficientely pass part of a matrix? From: Alberto Date: 23 Jan, 2012 21:37:52 Message: 1 of 12 |
|
Dear all, |
|
Subject: Incredibly slowed down code when calling a function. How to efficientely pass part of a matrix? From: James Tursa Date: 23 Jan, 2012 22:05:10 Message: 2 of 12 |
|
"Alberto" wrote in message <jfkjvg$8bh$1@newscl01ah.mathworks.com>... |
|
Subject: Incredibly slowed down code when calling a function. How to From: TideMan Date: 23 Jan, 2012 22:05:46 Message: 3 of 12 |
|
On Jan 24, 10:37 am, "Alberto " <canestre...@idra.unipd.it> wrote: |
|
Subject: Incredibly slowed down code when calling a function. How to From: James Tursa Date: 23 Jan, 2012 22:19:12 Message: 4 of 12 |
|
TideMan <mulgor@gmail.com> wrote in message <fd1790f7-01e1-4127-9968-7ad54ea37325@b23g2000yqn.googlegroups.com>... |
|
Subject: Incredibly slowed down code when calling a function. How to From: Alberto Date: 23 Jan, 2012 22:34:11 Message: 5 of 12 |
|
thanks James Tursa. Are u saying that Matlab is really such a bad programming language? I thank you a lot for the link you provided me but it seems really too complicated. |
|
Subject: Incredibly slowed down code when calling a function. How to From: dpb Date: 23 Jan, 2012 22:47:17 Message: 6 of 12 |
|
On 1/23/2012 4:34 PM, Alberto wrote: |
|
Subject: Incredibly slowed down code when calling a function. How to From: Alberto Date: 23 Jan, 2012 22:53:10 Message: 7 of 12 |
|
Sorry i the last minimal example in my first post was actually wrong. I thing that the correct sintax is: |
|
Subject: Incredibly slowed down code when calling a function. How to From: TideMan Date: 23 Jan, 2012 23:53:38 Message: 8 of 12 |
|
On Jan 24, 11:19 am, "James Tursa" |
|
Subject: Incredibly slowed down code when calling a function. How to From: Alberto Date: 24 Jan, 2012 00:18:09 Message: 9 of 12 |
|
Thanks dpb. i understand matlab favours to reduce prototyping development time, but having a code that is 50-100 time slower is a big gap. i can understand 2-3 times slower. Anyways i tried different options. I tried to avoid to store all the time steps and therefore i now declared F and C as vector,not array. I was expecting that with this trick i was improving something, but actually things are even worst. With this code |
|
Subject: Incredibly slowed down code when calling a function. How to From: dpb Date: 24 Jan, 2012 01:00:58 Message: 10 of 12 |
|
On 1/23/2012 6:18 PM, Alberto wrote: |
|
Subject: Incredibly slowed down code when calling a function. How to From: Alberto Date: 24 Jan, 2012 02:43:09 Message: 11 of 12 |
|
Thanks dpb. I forgot that. So if i now initialize correctly with rand and zeros and i do not save time steps |
|
Subject: Incredibly slowed down code when calling a function. How to From: Bruno Luong Date: 24 Jan, 2012 07:29:10 Message: 12 of 12 |
|
"Alberto" wrote in message <jfl5rt$1ra$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.
Contact us at files@mathworks.com
