Comments on: Selecting Data and Surrounding Values https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/?s_tid=feedtopost Loren Shure is interested in the design of the MATLAB language. She is an application engineer and writes here about MATLAB programming and related topics. Tue, 02 Aug 2016 17:58:24 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Ramana https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30432 Thu, 02 Jul 2009 03:30:59 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30432 Dear Loren,
Thank you very much for your redirection.
Yes, I have got to my solution with it now.

regards,
ramana murthy

]]>
By: Loren https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30428 Wed, 01 Jul 2009 20:30:20 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30428 Ramana-

There’s a relevant thread on the newsgroup that you should read:

–Loren

]]>
By: Loren https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30427 Wed, 01 Jul 2009 14:02:47 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30427 Ramana-

bsxfun may help. I suggest you program up several variants and time/profile them. Again, there are some utilities that may be useful on the file exchange.

–Loren

]]>
By: Ramana https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30426 Wed, 01 Jul 2009 11:53:38 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30426 Dear Loren,
Thank you for your response.
Yes, I’m comparing vectors of length 150.
For some code, I receive OUT of MEMORY and for some it takes really very long time.
I was looking for using built-in MATLAB utilities as they are usually best optimized.
Can this bxxfun be helpful?

regards,
ramana

]]>
By: Loren https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30425 Wed, 01 Jul 2009 10:25:41 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30425 Ramana-

I assume you are comparing vectors of length 150 though you don’t make that clear. I would recommend trying several different codes and timing/profiling them to see what’s best for your circumstances. You might also post to the newsgroup, and look at the File Exchange as I think there might be some relevant contributions there.

–Loren

]]>
By: ramana https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30424 Wed, 01 Jul 2009 09:53:36 +0000 https://blogs.mathworks.com/loren/2007/03/15/selecting-data-and-surrounding-values/#comment-30424 Hi
I have two matrices of size 5000×150 and 1500×150.
I want to find pairwise euclidean distance and pairwise difference.
Can bsxfun be best utilized for this? Though I use repmat, still I need to keep in a for loop, which is very time consuming.
Thanking you very much,

regards,
ramana

]]>