indexmax1 - b = ii; end end b

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

View Full Document Right Arrow Icon
function [b] = indexmax2(A) b = [1]; for ii = 2:length(A) if A(ii) >= A(ii-1) & A(ii)>= A(b) ;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b = ii; end end b...
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