bugGNU Octave - Bugs: bug #43786, inputdlg: support options string...

 
 

bug #43786: inputdlg: support options string or structure

Submitter:  None
Submitted:  Tue 09 Dec 2014 03:28:30 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Will Flannery Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 03 Mar 2019 03:42:14 PM UTC, comment #6: 

Re-categorizing to a feature request.  Octave no longer errors on the fifth argument, but it also isn't processed in any way.

Rik <rik5>
Group administrator
Tue 20 Sep 2016 08:23:28 PM UTC, comment #5: 

I have opened a new bug (bug #49143) about comment #4.

Avinoam Kalma <avinoam>
Group Member
Mon 19 Sep 2016 06:06:28 PM UTC, comment #4: 

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.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 19 Sep 2016 01:51:47 PM UTC, comment #3: 


Currently, if we call inpuldlg with 5 parameters, as matlab does,
the program  exists with an error.
IMHO is it better to issue a warning and continue with the
execution, becuase the 5th parameter influences only the
appearence of the window and not the data or the computation.

What do you think?

Avinoam Kalma <avinoam>
Group Member
Sun 22 Feb 2015 06:39:59 PM UTC, comment #2: 

Let's tackle one bug at a time. Retitling to request addition of the fifth input argument to inputdlg.

Description of the options argument is here:

http://www.mathworks.com/help/matlab/ref/inputdlg.html

Mike Miller <mtmiller>
Group Member
Tue 09 Dec 2014 04:39:17 PM UTC, comment #1: 

Inputdlg is implemented in 3.8.1
but it doesn't have the options parameter

Octave:
 -- Function File: CSTR = inputdlg (PROMPT, TITLE, ROWSCOLS, DEFAULTS)

this code:
answer=inputdlg(prompt,name,numlines,defaultanswer,options);

but the code runs if you remove the options parameter.

It then stops at :
warning: the 'alpha' function is not yet implemented in Octave
error: 'alpha' undefined near line 29 column 1
error: called from:
error:   /home/doug/Downloads/FDTD-Toolbox/plotepsmu.m at line 29, column 1
error:   /home/doug/Downloads/FDTD-Toolbox/interactiveFDTD.m at line 22, column 1

Doug Stewart <dastew>
Tue 09 Dec 2014 03:28:30 PM UTC, original submission:  


The mathworks iFDTD toolbox can be downloaded from this page ...

http://www.problemsinelectrodynamics.com/tools/interactive-fdtd-toolbox

I tried to run it with Octave and got an error msg,

inputdlg command not implemented.

I anticipate that there will be more user I/O commands not implemented.

This is a fantastic toolbox, and I think interactive programs are the wave of the future, so these would be great features to add to Octave.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-03 mtmiller Carbon-CopyRemoved 80942 -
    2019-03-03 rik5 Carbon-CopyRemoved 72865 -
    2019-03-03 rik5 Item GroupMatlab Compatibility Feature Request
    2015-02-22 mtmiller CategoryNone Octave Function
        Severity3 - Normal 1 - Wish
        Item GroupFeature Request Matlab Compatibility
        StatusNone Confirmed
        SummaryAdd commands to run mathworks interactive iFDFT toolbox inputdlg: support options string or structure

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code