indexmax3 - for i = 1:length(A if A(i)==max(A C(2)=i end...

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)); C(1)=(ind(ind1));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for i = 1:length(A) if A(i)==max(A) C(2)=i; end end C(1),...
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 Berkeley.

Ask a homework question - tutors are online