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