A[10 20 30 0;]
??? A[10 20 30 0;]
     |
Error: Unbalanced or unexpected parenthesis or bracket.

A[10 20 30 0;0 -1 10 -2;]
??? A[10 20 30 0;0 -1 10 -2;]
     |
Error: Unbalanced or unexpected parenthesis or bracket.

A[10 20 30 0;0 -1 10 -2; 4 0 -10 1; 1 1 1 1]
??? A[10 20 30 0;0 -1 10 -2; 4 0 -10 1; 1 1 1 1]
     |
Error: Unbalanced or unexpected parenthesis or bracket.

A[10 20 30 0;0 -1 10 -2; 4 0 -10 1;1 1 1 1]
??? A[10 20 30 0;0 -1 10 -2; 4 0 -10 1;1 1 1 1]
     |
Error: Unbalanced or unexpected parenthesis or bracket.

A[10 20 30 0;0 -1 10 -2;4 0 -10 1;1 1 1 1]
??? A[10 20 30 0;0 -1 10 -2;4 0 -10 1;1 1 1 1]
     |
Error: Unbalanced or unexpected parenthesis or bracket.

A=[10 20 30 0;0 -1 10 -2;4 0 -10 1;1 1 1 1]

A =

    10    20    30     0
     0    -1    10    -2
     4     0   -10     1
     1     1     1     1

B=[3;10;0;5]

B =

     3
    10
     0
     5

help inv
 INV    Matrix inverse.
    INV(X) is the inverse of the square matrix X.
    A warning message is printed if X is badly scaled or
    nearly singular.
 
    See also <a href="matlab:help slash">slash</a>, <a href="matlab:help pinv">pinv</a>, <a href="matlab:help cond">cond</a>, <a href="matlab:help condest">condest</a>, <a href="matlab:help lsqnonneg">lsqnonneg</a>, <a href="matlab:help lscov">lscov</a>.

    Overloaded methods:
       <a href="matlab:help gf/inv">gf/inv</a>
       <a href="matlab:help lti/inv">lti/inv</a>
       <a href="matlab:help sym/inv">sym/inv</a>

    Reference page in Help browser
       <a href="matlab:doc inv">doc inv</a>

inv(A)

ans =

    0.0010    0.1863    0.2059    0.1667
    0.0569   -0.1961   -0.0588   -0.3333
   -0.0049    0.0686   -0.0294    0.1667
   -0.0529   -0.0588   -0.1176    1.0000

A

A =

    10    20    30     0
     0    -1    10    -2
     4     0   -10     1
     1     1     1     1

a=inv(A)

a =

    0.0010    0.1863    0.2059    0.1667
    0.0569   -0.1961   -0.0588   -0.3333
   -0.0049    0.0686   -0.0294    0.1667
   -0.0529   -0.0588   -0.1176    1.0000

R=a*B

R =

    2.6990
   -3.4569
    1.5049
    4.2529


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

Matrix
??? Undefined function or variable 'a'.

Error in ==> <a href="error:C:\Documents and Settings\a2009119663\My Documents\MATLAB\Q1\Matrix.m,8,0">Matrix at 8</a>
R=a.*B;
R=a.*B
??? Error using ==> times
Matrix dimensions must agree.

R=B.*a
??? Error using ==> times
Matrix dimensions must agree.

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

Matrix
??? Undefined function or variable 'a'.

Error in ==> <a href="error:C:\Documents and Settings\a2009119663\My Documents\MATLAB\Q1\Matrix.m,8,0">Matrix at 8</a>
R=a*B;
R=a*B

R =

    2.6990
   -3.4569
    1.5049
    4.2529

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

Matrix
??? Undefined function or variable 'a'.

Error in ==> <a href="error:C:\Documents and Settings\a2009119663\My Documents\MATLAB\Q1\Matrix.m,8,0">Matrix at 8</a>
R=a*B;
% Modify expression to add input arguments.
% Example:
%   a = [1 2 3; 4 5 6]; 
%   foo(a);

Matrix
i=0

i =

     0

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

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

Matrix
Matriz
??? Undefined function or variable 'Matriz'.

builtin('cd','..');
builtin('cd','C:\Documents and Settings\a2009119663\My Documents\MATLAB\Q2');
builtin('cd','..');
builtin('cd','C:\Documents and Settings\a2009119663\My Documents\MATLAB\Q1');
diary off
