octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49143] inputdlg does not handle well vectors


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #49143] inputdlg does not handle well vectors
Date: Wed, 14 Sep 2022 12:31:10 -0400 (EDT)

Follow-up Comment #11, bug #49143 (project octave):

examples:

Matlab 2022a:

2 element row vector, 3 prompts

orientation = inputdlg({'axis x' ,'axis y','axis z'},'cosine directors',[1
70],{'0','-sind(180)','cosd(180)'})

produces dialog with 3 inputs, each 1 row high and 70 chars wide
Octave throws an error because the vector is supposed to have the same number
of elements, each defining a height.

2 element row vector, 2 prompts

orientation = inputdlg({'axis y','axis z'},'cosine directors',[1
70],{'-sind(180)','cosd(180)'})

produces dialog with 2 inputs, each 1 row high and 70 chars wide
Octave produces a dialog with 2 inputs, the first 1 row high the second 70
rows high, as per the documented behavior.

2 element row vector, 2 prompts

orientation = inputdlg({'axis y','axis z'},'cosine
directors',[1;70],{'-sind(180)','cosd(180)'})

produces dialog with 2 inputs, 2 inputs, the first 1 row high the second 70
rows high, as per the documented behavior.
Octave produces a dialog with 2 inputs, the first 1 row high the second 70
rows high, as per the documented behavior.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?49143>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]