None.
On entry, | or . |
On entry, | , or . |
ncols = 80 indent = 0 labrow = 'I' labcol = 'I' form = ' '
Open in the MATLAB editor: x04cc_example
function x04cc_example fprintf('x04cc example results\n\n'); nmax = 5; la = (nmax*(nmax+1))/2; a = [1:la]; % First matrix : 4x4 unit lower triangular mtitle = 'Example 1:'; n = int64(nmax-1); uplo = 'Lower'; diag = 'Unit'; [ifail] = x04cc( ... uplo, diag, n, a, mtitle); fprintf('\n'); % Second matrix : 5x5 non-unit upper triangular mtitle = 'Example 2:'; n = int64(nmax); uplo = 'Upper'; diag = 'Non-unit'; [ifail] = x04cc( ... uplo, diag, n, a, mtitle);
x04cc example results Example 1: 1 2 3 4 1 1.0000 2 2.0000 1.0000 3 3.0000 6.0000 1.0000 4 4.0000 7.0000 9.0000 1.0000 Example 2: 1 2 3 4 5 1 1.0000 2.0000 4.0000 7.0000 11.0000 2 3.0000 5.0000 8.0000 12.0000 3 6.0000 9.0000 13.0000 4 10.0000 14.0000 5 15.0000