{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

{[ snackBarMessage ]}