Defining the elements of a Matrix



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
.



Relevant Pages

  • Re: Defining the elements of a Matrix
    ... Is there a way that I can define the element index ... For example I have the following matrix in descending order ... Is it possible to use Matlab to output the elements' index of t? ... [maxvalue maxind]=max ...
    (comp.soft-sys.matlab)
  • Check sortation of a vector
    ... Is there a command in MatLab, ... vector is sorted in ascending or in descending order? ...
    (comp.soft-sys.matlab)