uiopen('/Users/aparna/Documents/MATLAB/isleap.m',1)
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the same
name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the same
name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.} 
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

second_max
{??? Input argument "x" is undefined.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',2,0)">second_max at 2</a>
a = find(x==max(x));
} 
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

second_max
{??? Input argument "x" is undefined.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',2,0)">second_max at 2</a>
a = find(max(x));
} 
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

second_max
{??? Input argument "x" is undefined.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',2,0)">second_max at 2</a>
a = max(x);
} 
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

second_max
{??? Input argument "x" is undefined.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',2,0)">second_max at 2</a>
a = max(x);
} 
second_max[1 3 2 5]
??? second_max[1 3 2 5]
              |
{Error: Unbalanced or unexpected parenthesis or bracket.
} 
second_max([1 3 2 5])
ans =
     3
second_max([1 3 2 5])
ans =
     3
second_max([1 4 5 5 0])
ans =
     4
second_max([0 0 67 0 0])
ans =
     0
second_max([0 0 0 0])
ans =
   Empty matrix: 1-by-0
second_max([0 0 0 1])
ans =
     0
second_max([0 0 0 0])
ans =
   Empty matrix: 1-by-0
second_max([0 0 0 0])
ans =
     0
second_max([0 0 0 1])
ans =
     0
second_max([1 4 5 5 0])
ans =
     4
second_max([1 3 2 5])
ans =
     3
second_max([1 3 2 5])
{??? Undefined function or variable 'A'.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',4,0)">second_max at 4</a>
if isempty(max(A))
} 
second_max([1 3 2 5])
{??? Undefined function or variable 'A'.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/second_max.m',4,0)">second_max at 4</a>
if isempty(max(A))==1
} 
second_max([1 3 2 5])
ans =
     3
second_max([0 0 0 1])
ans =
     0
second_max([0 0 0 0])
ans =
none
second_max([4 4 4 ])
ans =
none
second_max([4 4 -3 ])
ans =
    -3
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
        5050
x = [1 2 3];
x*x 
{??? Error using ==> mtimes
Inner matrix dimensions must agree.
} 
x^2
{??? Error using ==> mpower
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.
} 
x.*x.
??? x.*x.
         |
{Error: Expression or statement is incomplete or incorrect.
} 
(x.)^2
??? (x.)^2
       |
{Error: Unbalanced or unexpected parenthesis or bracket.
} 
x.^2
ans =
     1     4     9
sum((1:0).^2)
ans =
     0
sum((1:10).^2)
ans =
   385
sum(0.5.^[1:10])
ans =
    0.9990
sum(0.5.^(1:10))
ans =
    0.9990
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
s =
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
s =
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
     6
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
{??? Attempted to access x(4); index out of bounds because
numel(x)=3.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/test_prob_3.m',13,0)">test_prob_3 at 13</a>
    s = s+x(i);
} 
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
s =
   120
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
s =
   120
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

test_prob_3
ans =
        5050
ans =
   385
ans =
    0.9990
s =
   120
round(5.46,1)
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/round.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/round.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{??? Error using ==> round
Too many input arguments.
} 
roundfra(5.46,1)
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{??? Undefined function or method 'roundfra' for input arguments of
type 'double'.
} 
roundfrac(5.46,1)
ans =
     0
roundfrac(5.46,1)
ans =
     0
roundfrac(5.46,1)
5.460ans =
     5
frac(-0.2)
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{??? Undefined function or method 'frac' for input arguments of type
'double'.
} 
frac(1.2)
{??? Undefined function or method 'frac' for input arguments of type
'double'.
} 
mod(2,2.5)
ans =
     2
mod(2.5),2)
??? mod(2.5),2)
              |
{Error: Unbalanced or unexpected parenthesis or bracket.
} 
mod(2.5,2)
ans =
    0.5000
repeat[5 5 67]
??? repeat[5 5 67]
          |
{Error: Unbalanced or unexpected parenthesis or bracket.
} 
repeat([5 5 67])
ans =
     0
repeat([5 5])
ans =
     0
repeat([5 5])
ans =
     1
repeat([5 5 67])
ans =
     1
repeat([5 67])
ans =
     1
repeat([5 67])
ans =
     0
repeat([5 5 67])
ans =
     0
repeat([5 5 67])
ans =
     0
repeat([5 5 67])
ans =
     5
repeat([5 5 67])
ans =
     5
repeat([5 5 67])
ans =
     0
repeat([5 5 67])
ans =
     0
repeat([5 5 67])
ans =
     1
repeat([5 67])
repeat([5 67])
result =
     0
ans =
     0
repeat([5 67])
repeat([5 67])
ans =
     0
repeat([5 5 67])
ans =
     0
uiopen('/Users/aparna/Documents/MATLAB/basis.m',1)
repeat([5 5 67])
ans =
     1
repeat([5 67])
ans =
     0
repeat([11 -22 33 -44 55 -66 11 -77 99 102])
ans =
     1
repeat([11 -22 33 -44 55 -66 -77 99 102])
ans =
     0
sorttwo([1 3 5], [2 4])
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{Warning: Function /Users/aparna/Documents/MATLAB/type.m has the
same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.} 
{??? Error: <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/sorttwo.m',16,1)">File: sorttwo.m Line: 16 Column: 1</a>
This statement is not inside any function.
 (It follows the END that terminates the definition of the function
 "sorttwo".)
} 
sorttwo([1 3 5], [2 4])
ans =
     1     2     2     3     4     5
sorttwo([1 5 8], [2 4])
ans =
     1     2     2     4     4     5     8
sorttwo([1 5 8], [2 4])
ans =
     1     2     4     5     8
sorttwo([1 3 5], [2 4])
ans =
     1     2     3     4     5
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
ans =
     1    11    15    16    17    18    43    44    51    58    71
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
{??? Error using ==> plus
Matrix dimensions must agree.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/sorttwo.m',15,0)">sorttwo at 15</a>
 disp('c = '+ b);
} 
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
{??? Error using ==> disp
Too many input arguments.

Error in ==> <a href="matlab: opentoline('/Users/aparna/Documents/MATLAB/sorttwo.m',15,0)">sorttwo at 15</a>
 disp('c = ',b);
} 
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
ans =
     1    11    15    16    17    18    43    44    51    58    71
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
c =
     1    11    15    16    17    18    43    44    51    58    71
ans =
     1    11    15    16    17    18    43    44    51    58    71
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
ans =
     1    11    15    16    17    18    43    44    51    58    71
ans =
     1    11    15    16    17    18    43    44    51    58    71
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
     1    11    15    16    17    18    43    44    51    58    71
58 71])
??? 58 71])
       |
{Error: Unexpected MATLAB expression.
} 
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
c =
     1    11    15    16    17    18    43    44    51    58    71
sorttwo([15 18 18], [1 3 3])
c =
     1     3     3
sorttwo([15 18 18], [1 3])
c =
     1     3    15    18    18
sorttwo([15 18], [1 3 3])
c =
     1     3     3
sorttwo([1 3], [15 18 18])
c =
     1     3    15    18    18
sorttwo([1 3 5], [15 16 18])
c =
     1     3     5    15    16    18
sorttwo([1 3 3], [15 16 18])
c =
     1     3     3    15    16    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([15 15 18], [1 3 3])
c =
     1     3     3
sorttwo([15 15 18], [1 3 3])
c =
     1     3     3    15    15    15    18
sorttwo([15 15 18], [1 3 3])
c =
     1     3     3    15    15    15    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([1 3 5], [15 16 18])
c =
     1     3     5    15    16    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([1 3 5], [15 16 18])
c =
     1     3     5    15    16    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([15 15 18], [1 3 3])
c =
     1     3     3    15    15    15    18
sorttwo([15 15 18], [1 3 3])
c =
     1     3     3    15    15    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([1 3 5], [15 16 18])
c =
     1     3     5    15    16    18
sorttwo([1 3 3], [15 15 18])
c =
     1     3     3    15    15    18
sorttwo([0 0 1], [15 15 15])
c =
     0     0     1    15    15    15
sorttwo([15 15], [0 0 1])
c =
     0     0     1    15    15
sorttwo([15 18 43 51], [1 11 16 17 44 58 71])
c =
     1    11    15    16    17    18    43    44    51    58    71
diary off
