i didnot understand this code i want help stp_w={'is','the'}; f = fopen('gg.txt'); I = textscan(f,'%s',100);% d=I{1}; for(i=1:2) x = strmatch(d(i), stp_w) If x~=1
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hiba rashed
am 4 Dez. 2016
Kommentiert: hiba rashed
am 5 Dez. 2016
this is about classify text document
0 Kommentare
Akzeptierte Antwort
KSSV
am 5 Dez. 2016
clc; clear all;
stp_w={'is','the'}; % set of strings is and the
f = fopen('gg.txt'); % gg.txt text file is opened
I = textscan(f,'%s',100); % the data in the file is scanned, it scans into cells
d=I{1}; % the first line data from the text file
for(i=1:2) % loop from 1 to 2
x = strmatch(d(i), stp_w) % trying to find wheter is/the exists in first line using strmatch(stringmatch)
If x~=1 % if the word exists, goes inside if
end
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for Parrot Drones finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!