This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % located (F). E=min(vec); F=vec(E); % Sort the vector vec and store it in (G). G=sort(vec); % vec2 is also a vector. Concatenate vec and vec2 in that order (H). H=[vec vec2]; % Reverse vec2 and store the resulting vector in (I). I=fliplr(vec2); % Find the last element of vec2 (J). Do it without using the length % function. J=vec2(end); % Starting with the first element, find every other element in vec2. That % is, find every element in vec2 that occurs at an oddnumbered index (K). K=vec2(1:2:length(vec2)); % Find all of the numbers in vec2 that are less than 5. (L) x=find(vec2<5);...
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 Institute of Technology.
 Spring '08
 Stallworth

Click to edit the document details