Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Demo Tools > demo_choose


create a dialog box for the choice of options


num = demo_choose(fil)



String containing the path of the binary file.


a number of the selected line.


The function demo_choose create a dialog box for the choice of options. It takes as argument the binary file 'fil'. It shall contain the variables 'choice', an array of text within bracket (the different options), and 'titl', the title of the dialog box. The function demo_choose returns the number of line chosen in the options array.


choice = ['Continuous time';'Discrete time'];
titl = 'Select time domain';
save(fullfile(TMPDIR, "example.bin"));
[n]=demo_choose(fullfile(TMPDIR, "example.bin"));
select n
  case 0
  case 1
    disp("Choice: 1")
  case 2
    disp("Choice: 2")

See also

  • x_choose — interactive window choice (modal dialog)
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 20:08:51 CET 2018