indexmax3 - maxval=max(A); for i =1:length(A) if...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [ ] = indexmax3(A) C = [ ]; [v,ind]=max(A); [v1,ind1]=max(max(A));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: maxval=max(A); for i =1:length(A) if A(i)==maxval C=[C,i]; end end C...
View Full Document

This note was uploaded on 11/16/2009 for the course ENGIN 7 taught by Professor Horowitz during the Spring '08 term at University of California, Berkeley.

Ask a homework question - tutors are online