nag_file_print_matrix_integer_comp (x04eb) prints an integer matrix, or part of it, using a format specifier supplied by you. The matrix is output to the unit defined by
nag_file_set_unit_advisory (x04ab).
None.
Not applicable.
function x04eb_example
fprintf('x04eb example results\n\n');
nmax = int64(5);
a = zeros(nmax,nmax,'int64');
for i = 1:nmax
a(i,:) = [1:nmax] + 10*i;
end
mtitle = 'Example 1:';
matrix = 'General';
diag = ' ';
format = ' ';
labrow = 'Integer';
labcol = 'Integer';
rlabs = {' '};
clabs = {' '};
ncols = int64(80);
indent = int64(0);
[ifail] = x04eb(...
matrix, diag, a(1:3,:), format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);
fprintf('\n');
mtitle = 'Example 2:';
matrix = 'Upper';
diag = 'Non-unit';
format = 'I8';
labrow = 'Character';
labcol = labrow;
rlabs = {'Uno '; 'Due '; 'Tre '; 'Quattro'; 'Cinque '};
clabs = {'Un '; 'Deux '; 'Trois '; 'Quatre '; 'Cinq '};
[ifail] = x04eb(...
matrix, diag, a, format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);
fprintf('\n Example 3:\n');
mtitle = 'A';
matrix = 'Lower';
diag = 'Non-unit';
format = 'MATLABI8';
labrow = 'No labels';
labcol = labrow;
[ifail] = x04eb(...
matrix, diag, a(1:4,:), format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);