The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to find the idx of different relative Min values
Replies: 5   Last Post: Oct 7, 2012 9:33 PM

Advanced Search

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

Posts: 4
Registered: 10/7/12
Re: How to find the idx of different relative Min values
Posted: Oct 7, 2012 2:39 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Bruno,

Thank you very much for your beautiful reply! It works perfectly.

I am still not very familiar with Matlab so I was hoping you would be able to explain to me the following line

f = @(r) r(find(D(r)==min(D(r)),1,'first'));

(especially with regards to the "@")

Thanks for your time,


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.