`function [Appended] = reverseAppend(vectorVal) B = [];for i = 1:length(vectorVal) B(i) = vectorVal(i); B(i+length(vectorVal)) = vectorVal(length(vectorVal)-i+1); endAppended = B;end`

so far i can write it to individually work for a numerical array (let B = [ ]) and for a character array (let B = [' ']) however I am unsure how write so it can work for either a character or numerical array. any help would be much appriciated

## Best Answer