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

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

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

Scilabヘルプ >> Xcos > Scilab Utilities Functions > scicos_getvalue

scicos_getvalue

xwindow dialog for Xcos

Calling Sequence

[ok,x1,..,x14]=scicos_getvalue(desc,labels,typ,ini)

Arguments

desc

column vector of strings, dialog general comment

labels

n column vector of strings, labels(i) is the label of the ith required value

typ

list(typ_1,dim_1,..,typ_n,dim_n)

typ_i

defines the type of the ith value, may have the following values:

"mat"

for constant matrix

"col"

for constant column vector

"row"

for constant row vector

"vec"

for constant vector

"intvec"

for constant vector with integer values i.e int(x) == x

"str"

for string

"lis"

for list

dim_i

defines the size of the ith value it must be an integer or a 2-vector of integer, -1 stands for undefined dimension

ini

n column vector of strings, ini(i) gives the suggested response for the ith required value

ok

boolean ,%t if ok button pressed, %f if cancel button pressed

xi

contains the ith value if ok=%t. If left hand side has one more xi than required values the last xi contains the vector of answered strings.

Description

This function encapsulate x_mdialog function with error checking, evaluation of numerical response, ...

Remarks

All valid expressions can be used as answers; for matrices and vectors getvalues automatically adds [ ] around the given answer before numeric evaluation.

Examples

labels=["magnitude";"frequency";"phase    "];
[ok,mag,freq,ph]=scicos_getvalue("define sine signal",labels,...
     list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])

See Also

  • x_mdialog — 対話的なベクトル/行列入力用のダイアログ.
  • x_matrix — 行列を編集する Xwindow
  • x_dialog — 対話的な複数行入力用ダイアログ.
Report an issue
<< scicos_debug Scilab Utilities Functions standard_inputs >>

Copyright (c) 2022-2024 (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:
Fri Apr 11 14:19:07 CEST 2014