thema1
{Error: <a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',7,33)">File: a1.m Line: 7 Column: 33</a>
Unbalanced or unexpected parenthesis or bracket.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Error: <a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',12,11)">File: a1.m Line: 12 Column: 11</a>
Expression or statement is incomplete or incorrect.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Undefined function or variable "k".

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 7)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',7,0)">line 7</a>)
    y(1) = (x(k+1) - x(k-1))/2*h ;

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Subscript indices must either be real positive integers or logicals.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 7)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',7,0)">line 7</a>)
    y(1) = (x(2) - x(0))/2*h ;

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Undefined function or variable 'e_x'.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 14)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',14,0)">line 14</a>)
    err = e_x;

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Undefined function or variable "y".

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 14)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',14,0)">line 14</a>)
    err = y;

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
y = a1(n);
} 
thema1
{Undefined function or variable "y".

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 14)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',14,0)">line 14</a>)
    err = y;

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
y = a1(n);
} 
a1
{Error using <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
Not enough input arguments.
} 
thema1
Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
    count = length(n);

{Output argument "err" (and maybe others) not assigned during call to "G:\hy213_matlab\lab10\a1.m>a1".

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
y = a1(n);
} 
thema1
Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
    count = length(n);

{Output argument "err" (and maybe others) not assigned during call to "G:\hy213_matlab\lab10\a1.m>a1".

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
y = a1(n);
} 
thema1
Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
    count = length(n);

{Output argument "err" (and maybe others) not assigned during call to "G:\hy213_matlab\lab10\a1.m>a1".

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
y = a1(n);
} 
thema1
{Undefined function or variable 'count'.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
x = linspace(0,2,count);
} 
thema1
thema1
a1
{Error using <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
Not enough input arguments.
} 
thema1
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('error')" style="font-weight:bold">error</a>
Too many output arguments.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 7)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',7,0)">line 7</a>)
loglog(-10./([10:10:500]-1), error)
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('loglog')" style="font-weight:bold">loglog</a>
Vectors must be the same lengths.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 7)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',7,0)">line 7</a>)
loglog(-10./([10:10:500]-1), error)
} 
-10./([10:10:500]-1
 -10./([10:10:500]-1
                   |
{Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
} 
-10./([10:10:500]-1)

ans =

  Columns 1 through 11

   -1.1111   -0.5263   -0.3448   -0.2564   -0.2041   -0.1695   -0.1449   -0.1266   -0.1124   -0.1010   -0.0917

  Columns 12 through 22

   -0.0840   -0.0775   -0.0719   -0.0671   -0.0629   -0.0592   -0.0559   -0.0529   -0.0503   -0.0478   -0.0457

  Columns 23 through 33

   -0.0437   -0.0418   -0.0402   -0.0386   -0.0372   -0.0358   -0.0346   -0.0334   -0.0324   -0.0313   -0.0304

  Columns 34 through 44

   -0.0295   -0.0287   -0.0279   -0.0271   -0.0264   -0.0257   -0.0251   -0.0244   -0.0239   -0.0233   -0.0228

  Columns 45 through 50

   -0.0223   -0.0218   -0.0213   -0.0209   -0.0204   -0.0200

-10./([10:10:500]-1
 -10./([10:10:500]-1
                   |
{Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
} 
-10./([10:10:500]-1
 -10./([10:10:500]-1
                   |
{Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
} 
-10./([10:10:500]-1)

ans =

  Columns 1 through 11

   -1.1111   -0.5263   -0.3448   -0.2564   -0.2041   -0.1695   -0.1449   -0.1266   -0.1124   -0.1010   -0.0917

  Columns 12 through 22

   -0.0840   -0.0775   -0.0719   -0.0671   -0.0629   -0.0592   -0.0559   -0.0529   -0.0503   -0.0478   -0.0457

  Columns 23 through 33

   -0.0437   -0.0418   -0.0402   -0.0386   -0.0372   -0.0358   -0.0346   -0.0334   -0.0324   -0.0313   -0.0304

  Columns 34 through 44

   -0.0295   -0.0287   -0.0279   -0.0271   -0.0264   -0.0257   -0.0251   -0.0244   -0.0239   -0.0233   -0.0228

  Columns 45 through 50

   -0.0223   -0.0218   -0.0213   -0.0209   -0.0204   -0.0200

length(-10./([10:10:500]-1))

ans =

    50

thema1
thema1
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 14)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',14,0)">line 14</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
a1
{Error using <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
Not enough input arguments.
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 14)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',14,0)">line 14</a>)
    err = norm(y-(exp(x+1)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x+1)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x+1)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x+1)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
a1
{Error using <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 4)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',4,0)">line 4</a>)
Not enough input arguments.
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Error using <a href="matlab:helpUtils.errorDocCallback('minus')" style="font-weight:bold"> - </a>
Matrix dimensions must agree.

Error in <a href="matlab:helpUtils.errorDocCallback('a1', 'G:\hy213_matlab\lab10\a1.m', 15)" style="font-weight:bold">a1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\a1.m',15,0)">line 15</a>)
    err = norm(y-(exp(x)),inf)

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 4)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',4,0)">line 4</a>)
error = a1(n);
} 
thema1
{Undefined function 'x' for input arguments of type 'double'.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 6)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',6,0)">line 6</a>)
    y(1) = (x(2) - x(1))/2*h;
} 
thema1
{Undefined function or variable 'count'.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 3)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',3,0)">line 3</a>)
x = linspace(0,2,count);
} 
thema1
thema1
{Attempted to access x(51); index out of bounds because numel(x)=50.

Error in <a href="matlab:helpUtils.errorDocCallback('thema1', 'G:\hy213_matlab\lab10\thema1.m', 11)" style="font-weight:bold">thema1</a> (<a href="matlab: opentoline('G:\hy213_matlab\lab10\thema1.m',11,0)">line 11</a>)
       y(k) = (x(k+1) - x(k-1))/2*h;
} 
diary off
