Scilab
Finding index of max matrix element
Posts  1 - 2  of  2
KBriggd
Hey all,

I am completely new to Scilab, and I am having trouble learning the basics. My question right now: How can I get the index of the maximum element in an array?

Thanks,
Kyle
Save
Cancel
Reply
replied to:  KBriggd
Sebabess
Replied to:  Hey all, I am completely new to Scilab, and I...
Hi Kyle,

to get the index of the maximum element in a array (or a matrix) you simply need to use the max function:

[minvalue, index] = min(A)

[URL=http://www.scilab.org]Scilab[/URL]
[URL=https://sites.google.com/site/myscilabsamples/basics/matrices]Samples[/URL]
Save
Cancel
Reply
 
x
OK