[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about the minimum of elements of a matrix
From: |
Søren Hauberg |
Subject: |
Re: about the minimum of elements of a matrix |
Date: |
Mon, 20 Dec 2010 23:44:58 +0100 |
man, 20 12 2010 kl. 17:23 -0500, skrev Doug Stewart:
>
>
> On Mon, Dec 20, 2010 at 5:02 PM, george.brida
> <address@hidden> wrote:
> hello friends,
> is there a function that gives a minimum a(i, j) of the
> elements of a matrix and the corresponding number of rows and
> column (ie it returns the values of i and j).
> Thank you in advance.
> George.
>
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
> Take a look at min
> help min
>
>
> mm=min(min(a)))
> [i,ij] =find (a==mm)
Or alternatively:
[val, idx] = min (A (:));
[i, j] = ind2sub (size (A), idx);
Søren
- about the minimum of elements of a matrix, george.brida, 2010/12/20
- Re: about the minimum of elements of a matrix, Doug Stewart, 2010/12/20
- Re: about the minimum of elements of a matrix,
Søren Hauberg <=
- Re: about the minimum of elements of a matrix, Martin Helm, 2010/12/20
- Re: about the minimum of elements of a matrix, CdeMills, 2010/12/21
- Re: about the minimum of elements of a matrix, Jaroslav Hajek, 2010/12/27
- Re: about the minimum of elements of a matrix, Martin Helm, 2010/12/27
- Re: about the minimum of elements of a matrix, Jaroslav Hajek, 2010/12/28