k=0.1; t=0; for n=1:10 t=t+k; end t t = 1.0000 format long e t t = 9.999999999999999e-01 t=0 t = 0 while (t < 1) t=t+k; while (t < 1) t=t+k; end t t = 1.100000000000000e+00 while (t < 1) t=0 t = 0 while (t < 1) t=t+k; k=min(k,1-t); end t t = 1 t=0 t = 0 while (t < 1) t=t+k; k=0.1 k = 1.000000000000000e-01 t=0 t = 0 while (t < 1) t=t+k; k=min(k,1-t) end k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.110223024625157e-16 k = 0 k=0.1 k = 1.000000000000000e-01 t=0 t = 0 while (abs(t-1) > 1e-15) t=t+k; k=min(k,1-t) end k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.000000000000000e-01 k = 1.110223024625157e-16 t t = 9.999999999999999e-01 k=0.1 k = 1.000000000000000e-01 t=0 t = 0 while (abs(t-1) > 1e-15) t=t+k k=min(k,1-t) pause end t = 1.000000000000000e-01 k = 1.000000000000000e-01 t = 2.000000000000000e-01 k = 1.000000000000000e-01 t = 3.000000000000000e-01 k = 1.000000000000000e-01 t = 4.000000000000000e-01 k = 1.000000000000000e-01 t = 5.000000000000000e-01 k = 1.000000000000000e-01 t = 6.000000000000000e-01 k = 1.000000000000000e-01 t = 7.000000000000000e-01 k = 1.000000000000000e-01 t = 7.999999999999999e-01 k = 1.000000000000000e-01 t = 8.999999999999999e-01 k = 1.000000000000000e-01 t = 9.999999999999999e-01 k = 1.110223024625157e-16 help system SYSTEM Execute system command and return result. [status,result] = SYSTEM('command') calls upon the operating system to execute the given command. The resulting status and standard output are returned. Examples: [status,result] = system('dir') [status,result] = system('ls') returns status = 0 and, in result, a MATLAB string containing a list of files in the current directory (assuming your operating system knows about the "dir" or "ls" command). If "dir" or "ls" fails or does not exist on your system, SYSTEM returns a nonzero value in status, and an explanatory message in result. See also dos, unix, and ! (exclamation point) under punct. Reference page in Help browser doc system system('ls') 2011-10-19.txt ese4.m 2011-11-02.txt ese4rk23.m 2011-11-09.txt ese4rk23.m~ 2011-11-23.txt ese4rk2.m 2011-11-30.txt fourier.m 2011-12-07.txt ms2.m 2012-01-11.txt phi1m.m 2012-01-25.txt rk23.m catenaria.m rk23.m~ catenaria.m~ rk2.m diff12ns.m stiff.m ese4eulero.m thetametodolineare.m ese4eulero.m~ thetametodolineare.m~ ese4exp.m ans = 0 diary off