Here is my code so far
clc
clear
outloc = 'D:\Documents and Settings\212068586\My Documents\MATLAB'
pat = 'MATLAB';
endpoint = regexp(outloc, pat);
newstring = [];
for w = 1:length(outloc)
if w < endpoint
newstring(w) = outloc(w);
end
disp(newstring)
end
I am getting a boatload of nnumbers and am wondering if this is ascii or something??
Thanks