Result only printed on screen and show in the ans variable in the workspace
Ältere Kommentare anzeigen
This is my code, it read the entire text file and search for a specific word and returns the line that contains that words using token in a cell array. The problem is my assigned variables are not returned not showed in the workspace of my function....
ans: result
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 18 Jan. 2014
0 Stimmen
You can use allwords() http://www.mathworks.com/matlabcentral/fileexchange/27184-allwords to parse your sentence into separate words. It's a heck of a lot easier than using strtok().
Then you can use strfind() to look for a particular word.
1 Kommentar
KnowledgeSeeker
am 18 Jan. 2014
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!