Mercurial > octave
comparison scripts/gui/inputdlg.m @ 21171:2935d56203a4 stable
Fix regressions caused by ismatrix definition change (partial fix bug #47036).
* inputdlg.m: Test that linespec isnumeric.
* uigetfile.m: Check that position property value isnumeric.
* fminunc.m: Check that x0 isnumeric.
* fsolve.m: Check that x0 isnumeric.
* lsqnonneg.m: Check that inputs C & D are both isnumeric and ismatrix.
* pqpnonneg.m: Check that inputs C & D are both isnumeric and ismatrix.
* bicg.m: Check input A issquare. Rephrase error messages.
* bicgstab.m: Check input A issquare. Rephrase error messages.
* cgs.m: Check input A issquare. Rephrase error messages.
* gmres.m: Check input A issquare. Rephrase error messages.
Change BIST test to match new error message.
* qmr.m: Check input A issquare. Rephrase error messages.
* spconvert.m: Check nargin first. Simplify input validation.
Wrap long error message to < 80 chars.
* treeplot.m: Simplify input validation.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 01 Feb 2016 22:59:43 -0800 |
parents | 777f26aa8e3e |
children | 3be6a07e8bad |
comparison
equal
deleted
inserted
replaced
21155:8b1e030d3d4f | 21171:2935d56203a4 |
---|---|
91 ## rc = [1,10; 2,20; 3,30]; | 91 ## rc = [1,10; 2,20; 3,30]; |
92 ## c1 c2 | 92 ## c1 c2 |
93 ## r1 1 10 first text field is 1x10 | 93 ## r1 1 10 first text field is 1x10 |
94 ## r2 2 20 second text field is 2x20 | 94 ## r2 2 20 second text field is 2x20 |
95 ## r3 3 30 third text field is 3x30 | 95 ## r3 3 30 third text field is 3x30 |
96 if (! isnumeric (linespec)) | |
97 error ("inputdlg: ROWSCOLS must be numeric"); | |
98 endif | |
99 | |
96 if (isscalar (linespec)) | 100 if (isscalar (linespec)) |
97 ## only scalar value in lineTo, copy from linespec and add defaults | 101 ## only scalar value in lineTo, copy from linespec and add defaults |
98 rowscols = zeros (numel (prompt), 2); | 102 rowscols = zeros (numel (prompt), 2); |
99 ## cols | 103 ## cols |
100 rowscols(:,2) = 25; | 104 rowscols(:,2) = 25; |