from
Quran Comparison & Search-requires Matlab
by Aman Siddiqi
Compares 10 translation of the quran with search
|
| array=str2cellmatrix(number)
|
function array=str2cellmatrix(number)
% Enter as a string: str2cellmatrix('This is a test')
% Returns returns a cell matrix with 4 columns, one word in each
array={[' ']}; numberlength=length(number); counter=1;
for character=1:numberlength;
if isspace(number(character))==0;
array(counter)=[strcat(array(counter),number(character))];
else; counter=counter+1; array(end+1)={[' ']};
end;
end;
|
|
Contact us at files@mathworks.com