Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi, is there an easy way to find the non zero minimum in a matrix?
Or is a loop the only way to do it?
This is what i have at the moment.
Oliver Guest wrote:
Hi, is there an easy way to find the non zero minimum in a matrix?
Or is a loop the only way to do it?
This is what i have at the moment.
Try this ..
Stuart
Thanks for the suggestions guys. I realized that I needed to have a tolerance in there as some of my values were very close to zero. So I went for this:
Hi Oliver,
Is b guaranteed to be non zero or an in-tolerance X to never be negative?
Stuart
Hi Stuart,
Yes for this particular task it wont ever be negative or exactly zero.
Oliver