This preview shows page 1. Sign up to view the full content.
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
- Spring '08