i have a function that convert numbers to arabic letters called " num2wordsarabe" it works good,but when i try to use it directly in "strrep" or any other function ,it does not work ,also i tried to pose x=num2wordsarabe(n) and use "x" in "strrep",it didnt work neither here is the exampl:
for i=1:length(str) if (abs(str(i))>=48)&&(abs(str(i))<=57) n=str2double(str(i)); num2wordsarabe(n); str=strrep(str,str(i),num2wordsarabe(n)); end end
result on workspace:
[ ??? Error using ==> num2wordsarabeToo many output arguments.Error in ==> test at 15 str=strrep(str,str(i),num2wordsarabe(n));]
Any help is greatly appreciated.
Best Answer