function [] = lengthVector(vector) %lengthVector(vector) uses a for loop to display contents of vector %Terry Harvey CISC 106 Section 99 TA James Jamerson %This code is designed to demonstrate a simple use of the Matlab length function. for index = [1 : length(vector)] fprintf('%.2f ', vector(index)); end