Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - 日本語

Change language to:
English - Français - Português - Русский

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

Scilabヘルプ >> Demo Tools > demo_function_choice

demo_function_choice

choose and execute an item within a list

Syntax

demo_function_choice()

Description

The function demo_function_choice choose and execute an item chosen in the variable 'demolist' that shall appear above. The variable 'demolist' is a text matrix whose first column contains item names displayed in an options window and whose second column contains the function that will be called. The title of the options window is 'Choose a demo'. If the options window is cancelled, the console is put back to its previous width.

Examples

demolist=[
    'Simulation of a binomial random variable','clf();BinomialT();';
    'Simulation of a discrete random variable','clf();RndDiscT();';
    'Simulation of a geometric random variable','clf();GeomT(1000);';
    'Simulation of a Poisson random variable','clf();PoissonT() ;';
    'Simulation of an exponential random variable','clf();ExpT();';
    'Simulation of a Weibull random variable','clf();WeibullT();';
    'Simulation of a hyper geometric random variable','clf();HyperGeomT();';
    'Simulation of an Erlang random variable','clf();ErlangT();'];

demo_function_choice();

See also

Report an issue
<< demo_file_choice Demo Tools demo_run >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:38:07 CET 2022