۱۳۹۳/۱۲/۰۱, ۰۹:۲۹ ب.ظ
با سلام
می خواستم در مورد این تابع برام توضیح بدید :
function wminput = text2image(string_text,size)
% wminput = text2image('Physician Identification Code.txt')
temp=textread(string_text, '%1s', 'whitespace','');
text = char(temp);
while length(text)<size*size
text=[text ; ' '];
end
a=;
for ni = 1:1:length(text)
a=[a abs(text(ni))];
end
y=a;
rep1=ceil(sqrt(length(y)));
y(length(y):rep1^2)=0;
wminput=(reshape(y,[rep1 rep1]));
end
با تشکر از شما
می خواستم در مورد این تابع برام توضیح بدید :
function wminput = text2image(string_text,size)
% wminput = text2image('Physician Identification Code.txt')
temp=textread(string_text, '%1s', 'whitespace','');
text = char(temp);
while length(text)<size*size
text=[text ; ' '];
end
a=;
for ni = 1:1:length(text)
a=[a abs(text(ni))];
end
y=a;
rep1=ceil(sqrt(length(y)));
y(length(y):rep1^2)=0;
wminput=(reshape(y,[rep1 rep1]));
end
با تشکر از شما