Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Français

Change language to:
English - 日本語 - 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

Aide de Scilab >> Outils pour les démonstrations > demo_function_choice

demo_function_choice

choisit et exécute un item au sein d'une liste

Séquence d'appel

demo_function_choice()

Description

La fonction demo_function_choice choisit et exécute un item choisi dans la variable 'demolist' qui doit figurer avant. La variable 'demolist' est une matrice de texte dont la premiere colonne contient des noms d'items affichés dans une fenêtre d'options et la deuxième, le nom d'une fonction correspondante qui sera exécuté. Le titre de la fenêtre d'options est 'Choose a demo'. Quand on choisit d'abandonner la fenêtre d'options, la console est remise à sa largeur initiale.

Exemples

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 an hyper geometric random variable','clf();HyperGeomT();';
    'Simulation of an Erlang random variable','clf();ErlangT();'];

demo_function_choice();

Voir aussi

Report an issue
<< demo_file_choice Outils pour les démonstrations 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:
Tue Feb 25 08:50:45 CET 2020