On entry, | or , |
or | , |
or | , |
or | or , |
or | . |
Open in the MATLAB editor: f01qk_example
function f01qk_example fprintf('f01qk example results\n\n'); a = [2, 2, 1.6, 2, 1.2; 2.5, 2.5, -0.4, -0.5, -0.3; 2.5, 2.5, 2.8, 0.5, -2.9]; [RQ, zeta, ifail] = f01qj(a); wheret = 'Separate'; m = int64(size(a,1)); nrowp = int64(size(a,2)); RQ(m+1:nrowp,1:nrowp) = 0; [PT, ifail] = f01qk( ... wheret, m, nrowp, RQ, zeta); P = PT'; disp('Matrix P'); disp(P);
f01qk example results Matrix P -0.1310 -0.5170 -0.4642 -0.5054 -0.4946 -0.1310 -0.5170 -0.4642 0.5054 0.4946 -0.3276 0.5499 -0.5199 -0.3957 0.4043 -0.6551 0.2494 -0.0928 0.4946 -0.5054 -0.6551 -0.3175 0.5385 -0.2967 0.3032