[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43786] inputdlg: support options string or st
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #43786] inputdlg: support options string or structure |
Date: |
Mon, 19 Sep 2016 18:06:29 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Follow-up Comment #4, bug #43786 (project octave):
Avinoam's suggestion looks useful as long as the options struct hasn't been
implemented. Just changing L.70 into
narginchk (1, 5);
if (nargin > 4)
warning ("inputdlg: 5th 'options' argument ignored");
endif
will do.
While trying Matlab's example 4 on the page Mike indicated in comment #2, I
hit a Matlab incompatibility:
>> answer = inputdlg (prompt, name, [1 40], defaultans, options);
error: inputdlg: ROWSCOLS vector does not match size of PROMPT
error: called from
inputdlg at line 124 column 7
Apparently Octave does not recognize a singleton dimension. Should be an easy
fix that may need generalizing into the matrix form as well but I have no time
now.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43786>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/