Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

please any one can explain this to me

조회 수: 2 (최근 30일)
hiba rashed
hiba rashed 2016년 12월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
n= fopen('stopword.txt','r');
m = textscan(n,'%s',100);
f = fopen('gg.txt','r');
I = textscan(f,'%s',100);
ll=strrep(I{1},'.','');
d=ll;
u=unique(d);
l=m{1};
for i=1:length(d)
x = strmatch(d(i),l);
c=0;
if isempty(x)
for j=1:length(u)
x = strmatch(d(i),d(j))
if x==1
c=c+1;
end
end
end
feq(i)=c;
end
[n m1]= sort(feq,'descend')

답변 (1개)

Image Analyst
Image Analyst 2016년 12월 23일
It's MATLAB code. And it appears to read two files, that you forgot to attach, and do some replacing, matching, and sorting. A wild guess is that it's converting Euro numbers that use commas instead of decimal points to numbers with decimal points. Other than that I'd need the file to figure it out, and you can do that as well as we can.
If you don't know what this code even does, then why did you get it and why are you trying to run it? If you can find the author, scold them for not putting in any comments and ask them to go through it with you as you add comments to their code.

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by