nag_file_print_matrix_real_band_comp (x04cf) prints a double band matrix stored in
a
packed
two-dimensional array,
using a format specifier supplied by you.
The matrix is output to the unit defined by
nag_file_set_unit_advisory (x04ab).
None.
None.
Not applicable.
None.
function x04cf_example
fprintf('x04cf example results\n\n');
m = int64(5);
n = int64(5);
mtitle = 'Example 1:';
kl = int64(1);
ku = int64(1);
a = [ 0, 12, 13, 14, 15;
21, 22, 23, 24, 25;
31, 32, 33, 34, 0];
format = ' ';
labrow = 'Integer';
labcol = labrow;
rlabs = {' '};
clabs = {' '};
ncols = int64(80);
indent = int64(0);
[ifail] = x04cf( ...
m, n, kl, ku, a, format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);
fprintf('\n');
mtitle = 'Example 2:';
kl = int64(1);
ku = int64(2);
a = [ 0, 0, 13, 14, 15;
0, 22, 23, 24, 25;
31, 32, 33, 34, 35;
41, 42, 43, 44, 0];
format = 'F8.2';
labrow = 'Character';
labcol = labrow;
rlabs = {'Uno '; 'Due '; 'Tre '; 'Quattro'; 'Cinque '};
clabs = {'Un '; 'Deux '; 'Trois '; 'Quatre '; 'Cinq '};
[ifail] = x04cf( ...
m, n, kl, ku, a, format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);
fprintf('\n Example 3:\n');
mtitle = 'A';
format = 'MATLABF8.2';
labrow = 'No labels';
labcol = labrow;
[ifail] = x04cf( ...
m, n, kl, ku, a, format, mtitle, labrow, ...
rlabs, labcol, clabs, ncols, indent);