| MATLAB Central > MATLAB Newsreader > please help optimize this ('find' is too slow) |
|
|
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 2 Dec, 2008 20:40:04 Message: 1 of 22 |
|
can anyone please help me speed this up?the line with find is way too slow! |
|
Subject: please help optimize this ('find' is too slow) From: Stefan Date: 2 Dec, 2008 21:25:03 Message: 2 of 22 |
|
Some sample data would be helpful. |
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 4 Dec, 2008 01:53:02 Message: 3 of 22 |
|
|
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 4 Dec, 2008 06:02:03 Message: 4 of 22 |
|
"Jayveer " <jveer@jveer.com> wrote in message <gh46f4$pg2$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 4 Dec, 2008 07:12:08 Message: 5 of 22 |
|
Hello Roger |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 4 Dec, 2008 20:42:02 Message: 6 of 22 |
|
"Jayveer " <jveer@jveer.com> wrote in message <gh7vs8$fgq$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 4 Dec, 2008 23:50:19 Message: 7 of 22 |
|
i've changed my code to the following based on your recommendation. it doesnt produce the same result as the original one :S. i think i might be doing something wrong. could you please check it? |
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 4 Dec, 2008 23:56:02 Message: 8 of 22 |
|
i changed my code to the following based on your recommendation. it produces a PiC full of zeros which implies its not going past the ifs. i must be doing something wrong. could you please have a run through it? |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 5 Dec, 2008 00:29:02 Message: 9 of 22 |
|
"Jayveer " <jveer@jveer.com> wrote in message <gh9qmi$l5c$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jayveer Date: 5 Dec, 2008 02:00:20 Message: 10 of 22 |
|
lol, so silly of me! you are right! :) thanks loads dude! the processing time went down from 28s to 13s! |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 6 Dec, 2008 18:13:02 Message: 11 of 22 |
|
"Jayveer " <jveer@jveer.com> wrote in message <gha1vj$850$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jveer Date: 6 Dec, 2008 21:36:03 Message: 12 of 22 |
|
hello Roger, thank you for the quick replies |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 7 Dec, 2008 04:42:01 Message: 13 of 22 |
|
"Jveer " <jveer@jveer.com> wrote in message <gher83$sfd$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 8 Dec, 2008 04:06:01 Message: 14 of 22 |
|
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message |
|
Subject: please help optimize this ('find' is too slow) From: Jveer Date: 9 Dec, 2008 04:06:02 Message: 15 of 22 |
|
hello Roger |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 10 Dec, 2008 20:35:04 Message: 16 of 22 |
|
"Jveer " <jveer@jveer.com> wrote in message <ghkqra$pq9$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jveer Date: 11 Dec, 2008 18:48:02 Message: 17 of 22 |
|
First, thanks a lot for your time and effort, Roger. I really appreciate the help. The code you've provided is a very smart piece of coding and i humbly admit that i havent quite figured out how it works. |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 11 Dec, 2008 20:37:02 Message: 18 of 22 |
|
"Jveer " <jveer@jveer.com> wrote in message <ghrn92$k9o$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 12 Dec, 2008 01:20:03 Message: 19 of 22 |
|
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <ghrtle$ngk$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 12 Dec, 2008 09:46:02 Message: 20 of 22 |
|
"Jveer " <jveer@jveer.com> wrote in message <ghrn92$k9o$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Roger Stafford Date: 12 Dec, 2008 18:38:02 Message: 21 of 22 |
|
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <ghtbsq$p90$1@fred.mathworks.com>... |
|
Subject: please help optimize this ('find' is too slow) From: Jveer Date: 19 Dec, 2008 20:54:03 Message: 22 of 22 |
|
apologies for late reply. been away. |
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.
