Unformatted text preview: %vector. [r c] = size(arr); %finds the dimensions of the array of numbers if index > c | index <= 0 %terminating condition; if the specified index is greater than the number of columns, then the %result will be an empty vector noindex = ; %empty vector result elseif index > 0 & index <= c %condition to check if the index is greater than 0 (the vector doesn't %exist) and less than or equal to the number of columns total = sum(arr(:,index)); %finds the total sum of the specified column arr(:,index) = ; %eliminates the column that the sum was found noindex = [index recursiveCol(arr,total)]; %clones the original function and concatenates it with the original %index value end end...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Tech.
- Spring '08