From: alfann on 10 Jun 2010 07:17 Hi there, if I have two matrix which is: Lr & Lc and I want to compare between the minimum from both of them and select the mimimum. For example: Lr=[1 2 3; 4 5 6; 7 8 9] Lc=[2 3 4; 5 6 7; 8 9 10] the minimum of Lr is 1 the minimum of Lr is 2 Now, I want select the minimum which is equal to 1.
From: Jan Simon on 10 Jun 2010 11:46 Dear Alfann! > if I have two matrix which is: > Lr & Lc > and I want to compare between the minimum from both of them and select the mimimum. > For example: > Lr=[1 2 3; 4 5 6; 7 8 9] > Lc=[2 3 4; 5 6 7; 8 9 10] > > the minimum of Lr is 1 > the minimum of Lr is 2 > > Now, > I want select the minimum which is equal to 1. Did you try to use the function MIN ? Jan
|
Pages: 1 Prev: The old story, for-loops and slow code.. (Sample Entropy) Next: Preallocating a dataset? |