MATLAB: Search a word in a workspace vektor.

vectorwordworkspace

Hi,
I have a Vektor in the Workspace which includes a string.
Now I want to search a 'word' in this vector.
How can I do thios or can help me someone?

Best Answer

I don't know what you mean by workspace file. Using proper terminology and examples that are valid matlab commands would help. Possibly you mean this:
v = [72 101 108 108 111 32 73 32 97 109 32 51 48 32 121 101 97 114 115 32 111 108 100 46];
s = char(v); %convert v into characters
yearloc = strfind(v, 'years')