User`s guide
Matrix Math Example
%CHOLESKY Cholesky factorization of A.
% L = CHOLESKY(A) returns the Cholesky factorization of A.
% This file is used as an example for the MATLAB
% Builder for Java product.
% Copyright 2001-2006 The MathWorks, Inc.
L = chol(A);
ludecomp.m
function [L,U] = ludecomp(A)
%LUDECOMP LU factorization of A.
% [L,U] = LUDECOMP(A) returns the LU factorization of A.
% This file is used as an example for the MATLAB
% Builder for Java product.
% Copyright 2001-2006 The MathWorks, Inc.
[L,U] = lu(A);
qrdecomp.m
function [Q,R] = qrdecomp(A)
%QRDECOMP QR factorization of A.
% [Q,R] = QRDECOMP(A) returns the QR factorization of A.
% This file is used as an example for the MATLAB
% Builder for Java product.
% Copyright 2001-2006 The MathWorks, Inc.
[Q,R] = qr(A);
Matrix Math Example: Step-by-Step Procedure
1 Ifyouhavenotalreadydoneso,copythefilesforthisexampleasfollows:
a. Copy the following directory that ships with MATLAB to your work
directory:
matlabroot\toolbox\javabuilder\Examples\MatrixMathExample
5-17