From a1e0ee899a5f8e60f44722c726bb8e09f1b20bb5 Mon Sep 17 00:00:00 2001 From: Ray Zimmerman Date: Tue, 23 Apr 2024 12:47:31 -0600 Subject: [PATCH] Update skip in t_makePTDF with correct MATLAB version number. Proper handling of matrix ./ row-vector requires MATLAB 9.1 or later (not 9.0). --- lib/t/t_makePTDF.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/t/t_makePTDF.m b/lib/t/t_makePTDF.m index 11e1cc43..064096b1 100644 --- a/lib/t/t_makePTDF.m +++ b/lib/t/t_makePTDF.m @@ -149,8 +149,8 @@ function t_makePTDF(quiet) t_is(H, H4, 12, sprintf('H4 (txfr) : full', k)); %% matrix of slacks (all cols) -if have_feature('matlab') && have_feature('matlab', 'vnum') < 9 - t_skip(2, 'MATLAB < 9 does not handle matrix ./ row-vector properly'); +if have_feature('matlab') && have_feature('matlab', 'vnum') < 9.001 + t_skip(2, 'MATLAB < 9.1 does not handle matrix ./ row-vector properly'); else Dm = [e4 e1 ones(nb, 1) Pd Pg e4 ones(nb, 1) Pd Pg]; eHm = [H4(:,1) H1(:,2) Heq(:,3) Hd(:,4) Hg(:,5) H4(:,6) Heq(:,7) Hd(:,8) Hg(:,9)];