From: Pedro A. F. M. <pfr...@fa...> - 2005-11-07 11:23:59
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Thomas Weber escribió: <blockquote cite="mid...@lo..." type="cite"> <pre wrap=""><!---->Please post a working example of your code (that is, a stripped down example of the failing code). Otherwise it's just guessing. </pre> </blockquote> I posted my code in last mail... the code was:<br> function res = test(a) <br> if (a>0) <br> j = test(a) <br> res = a + j, <br> else <br> res = 0; <br> endif <br> endfunction <br> upssss.... line 4 "j = test(a)" must be "j = test(a-1)"... it was the error of my code... :-* sorry and thanks for all.<br> Regards,<br> Pedro<br> </body> </html> |