Defining the elements of a Matrix
- From: CandyGirl <Rasha@xxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 10:40:36 EDT
Hi,
Is there a way that I can define the element index (row, column) of a matrix.
For example I have the following matrix in descending order
a = [50,30,10,1], and I've located the highest value using the max command
t=max(a)
Is it possible to use Matlab to output the elements' index of t? this would be [1,1] for this example.
thanks :)
Roushy
.
- Follow-Ups:
- Re: Defining the elements of a Matrix
- From: kem
- Re: Defining the elements of a Matrix
- Prev by Date: saving a graph - should be stretched horizontally...
- Next by Date: Re: i want to declare a matrix of n*m size-------------------------how
- Previous by thread: saving a graph - should be stretched horizontally...
- Next by thread: Re: Defining the elements of a Matrix
- Index(es):
Relevant Pages
|