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

 
 

bug #43786: inputdlg: support options string or structure

Submitted by:  None
Submitted on:  Tue 09 Dec 2014 03:28:30 PM UTC  
 
Category: Octave FunctionSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Will FlanneryOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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:

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>
Project 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>
Project 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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 22 Feb 2015 06:39:59 PM UTCmtmillerCategoryNone=>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.1-cleanup1