Scilab manual - Cnic · Scilab manual xi tbx_build_gateway ..... 513 tbx_build_gateway_loader .....

2231
Scilab manual

Transcript of Scilab manual - Cnic · Scilab manual xi tbx_build_gateway ..... 513 tbx_build_gateway_loader .....

  • Scilab manual

  • Scilab manual

  • iv

    Table of ContentsI. Scilab ...................................................................................................................... 1

    abort ................................................................................................................... 2add_demo ............................................................................................................ 3ans ..................................................................................................................... 4argn .................................................................................................................... 5backslash (\) ......................................................................................................... 6banner ................................................................................................................. 7boolean ............................................................................................................... 8brackets ............................................................................................................... 9break ................................................................................................................. 10case .................................................................................................................. 11chdir ................................................................................................................. 12clear .................................................................................................................. 13clearfun ............................................................................................................. 14clearglobal ......................................................................................................... 15colon ................................................................................................................. 16comma .............................................................................................................. 17comments .......................................................................................................... 18comp ................................................................................................................. 19comparison ......................................................................................................... 20continue ............................................................................................................. 22debug ................................................................................................................ 23delbpt ................................................................................................................ 24dispbpt .............................................................................................................. 25do ..................................................................................................................... 26dot .................................................................................................................... 27edit ................................................................................................................... 28else ................................................................................................................... 29elseif ................................................................................................................. 30empty ................................................................................................................ 31end ................................................................................................................... 32equal ................................................................................................................. 33errcatch ............................................................................................................. 34errclear .............................................................................................................. 35error .................................................................................................................. 36error_table .......................................................................................................... 37evstr .................................................................................................................. 45exec .................................................................................................................. 46exists ................................................................................................................. 48exit ................................................................................................................... 49external ............................................................................................................. 50extraction ........................................................................................................... 51for .................................................................................................................... 54format ............................................................................................................... 55funcprot ............................................................................................................. 56funptr ................................................................................................................ 57getdebuginfo ....................................................................................................... 58getmd5 .............................................................................................................. 59getmemory ......................................................................................................... 60getmodules ......................................................................................................... 61getos ................................................................................................................. 62getscilabmode ..................................................................................................... 63getshell .............................................................................................................. 64getvariablesonstack .............................................................................................. 65getversion .......................................................................................................... 66

  • Scilab manual

    v

    global ................................................................................................................ 67gstacksize .......................................................................................................... 68hat .................................................................................................................... 69ieee ................................................................................................................... 70if ...................................................................................................................... 71insertion ............................................................................................................ 72intppty ............................................................................................................... 76inv_coeff ........................................................................................................... 77iserror ............................................................................................................... 78isglobal .............................................................................................................. 79lasterror ............................................................................................................. 80left .................................................................................................................... 81less ................................................................................................................... 82librarieslist ......................................................................................................... 83libraryinfo .......................................................................................................... 84macr2lst ............................................................................................................. 85macr2tree ........................................................................................................... 87matrices ............................................................................................................. 88matrix ............................................................................................................... 89mode ................................................................................................................. 90mtlb_mode ......................................................................................................... 91names ................................................................................................................ 92newfun .............................................................................................................. 93null ................................................................................................................... 94parents ............................................................................................................... 95pause ................................................................................................................. 97percent .............................................................................................................. 98perl ................................................................................................................... 99plus ................................................................................................................. 100poly ................................................................................................................. 101power .............................................................................................................. 102predef .............................................................................................................. 103pwd ................................................................................................................. 104quit ................................................................................................................. 105quote ............................................................................................................... 106rational ............................................................................................................ 107readgateway ...................................................................................................... 108resume ............................................................................................................. 109return ............................................................................................................... 110sciargs ............................................................................................................. 111scilab ............................................................................................................... 112select ............................................................................................................... 114semicolon (;) ..................................................................................................... 115setbpt ............................................................................................................... 116sethomedirectory ............................................................................................... 117slash ................................................................................................................ 118stacksize .......................................................................................................... 119star .................................................................................................................. 120startup ............................................................................................................. 121symbols ........................................................................................................... 122testmatrix ......................................................................................................... 123then ................................................................................................................. 124tilda ................................................................................................................. 125try ................................................................................................................... 126type ................................................................................................................. 127typename .......................................................................................................... 128user ................................................................................................................. 129varn ................................................................................................................. 130

  • Scilab manual

    vi

    ver .................................................................................................................. 131warning ............................................................................................................ 132what ................................................................................................................ 133where .............................................................................................................. 134whereami ......................................................................................................... 135whereis ............................................................................................................ 136while ............................................................................................................... 137who ................................................................................................................. 138who_user .......................................................................................................... 139whos ............................................................................................................... 140with_atlas ......................................................................................................... 141with_gtk ........................................................................................................... 142with_javasci ...................................................................................................... 143with_macros_source ........................................................................................... 144with_module ..................................................................................................... 145with_pvm ......................................................................................................... 146with_texmacs .................................................................................................... 147with_tk ............................................................................................................ 148

    II. ARnoldi PACKage ................................................................................................ 149dnaupd ............................................................................................................. 150dneupd ............................................................................................................. 156dsaupd ............................................................................................................. 157dseupd ............................................................................................................. 163znaupd ............................................................................................................. 164zneupd ............................................................................................................. 165

    III. Boolean .............................................................................................................. 166bool2s .............................................................................................................. 167find ................................................................................................................. 168

    IV. CACSD .............................................................................................................. 169abcd ................................................................................................................ 170abinv ............................................................................................................... 171arhnk ............................................................................................................... 175arl2 ................................................................................................................. 176arma ................................................................................................................ 178arma2p ............................................................................................................ 180armac .............................................................................................................. 181armax .............................................................................................................. 182armax1 ............................................................................................................ 184arsimul ............................................................................................................ 186augment ........................................................................................................... 187balreal ............................................................................................................. 189bilin ................................................................................................................ 190black ............................................................................................................... 191bode ................................................................................................................ 193bstap ............................................................................................................... 195cainv ............................................................................................................... 196calfrq ............................................................................................................... 198canon ............................................................................................................... 199ccontrg ............................................................................................................ 201chart ................................................................................................................ 202cls2dls ............................................................................................................. 204colinout ............................................................................................................ 205colregul ............................................................................................................ 206cont_frm .......................................................................................................... 207cont_mat .......................................................................................................... 208contr ................................................................................................................ 209contrss ............................................................................................................. 211copfac .............................................................................................................. 212

  • Scilab manual

    vii

    csim ................................................................................................................ 213ctr_gram .......................................................................................................... 215dbphi ............................................................................................................... 216dcf .................................................................................................................. 217ddp ................................................................................................................. 218des2ss .............................................................................................................. 220des2tf .............................................................................................................. 221dhinf ............................................................................................................... 223dhnorm ............................................................................................................ 226dscr ................................................................................................................. 227dsimul ............................................................................................................. 228dt_ility ............................................................................................................. 229dtsi .................................................................................................................. 231equil ................................................................................................................ 232equil1 .............................................................................................................. 233evans ............................................................................................................... 234feedback .......................................................................................................... 235findABCD ........................................................................................................ 236findAC ............................................................................................................ 239findBD ............................................................................................................ 241findBDK .......................................................................................................... 245findR ............................................................................................................... 248findx0BD ......................................................................................................... 251flts .................................................................................................................. 254fourplan ........................................................................................................... 257frep2tf ............................................................................................................. 258freq ................................................................................................................. 260freson .............................................................................................................. 261fspecg .............................................................................................................. 262fstabst .............................................................................................................. 263g_margin .......................................................................................................... 265gainplot ............................................................................................................ 267gamitg ............................................................................................................. 268gcare ............................................................................................................... 269gfare ................................................................................................................ 270gfrancis ............................................................................................................ 271gtild ................................................................................................................ 273h2norm ............................................................................................................ 275h_cl ................................................................................................................. 276h_inf ............................................................................................................... 277h_inf_st ............................................................................................................ 278h_norm ............................................................................................................ 279hankelsv ........................................................................................................... 280hinf ................................................................................................................. 281imrep2ss .......................................................................................................... 284inistate ............................................................................................................. 285invsyslin .......................................................................................................... 287kpure ............................................................................................................... 288krac2 ............................................................................................................... 289lcf ................................................................................................................... 290leqr ................................................................................................................. 291lft ................................................................................................................... 293lin ................................................................................................................... 295linf .................................................................................................................. 297linfn ................................................................................................................ 298linmeq ............................................................................................................. 299lqe .................................................................................................................. 303lqg .................................................................................................................. 306

  • Scilab manual

    viii

    lqg2stan ........................................................................................................... 307lqg_ltr .............................................................................................................. 309lqr ................................................................................................................... 311ltitr .................................................................................................................. 313m_circle ........................................................................................................... 315macglov ........................................................................................................... 316markp2ss .......................................................................................................... 317minreal ............................................................................................................ 318minss ............................................................................................................... 319mucomp ........................................................................................................... 320narsimul ........................................................................................................... 321nehari .............................................................................................................. 322noisegen ........................................................................................................... 323nyquist ............................................................................................................. 324obs_gram ......................................................................................................... 326obscont ............................................................................................................ 327observer ........................................................................................................... 329obsv_mat .......................................................................................................... 331obsvss .............................................................................................................. 332p_margin .......................................................................................................... 333parrot ............................................................................................................... 335pfss ................................................................................................................. 336phasemag ......................................................................................................... 337ppol ................................................................................................................. 338prbs_a .............................................................................................................. 339projsl ............................................................................................................... 340reglin ............................................................................................................... 341repfreq ............................................................................................................. 342ric_desc ........................................................................................................... 344ricc ................................................................................................................. 346riccati .............................................................................................................. 349routh_t ............................................................................................................. 350rowinout .......................................................................................................... 351rowregul .......................................................................................................... 353rtitr ................................................................................................................. 354sensi ................................................................................................................ 357sgrid ................................................................................................................ 359show_margins ................................................................................................... 360sident ............................................................................................................... 361sm2des ............................................................................................................ 365sm2ss .............................................................................................................. 366sorder .............................................................................................................. 367specfact ............................................................................................................ 371ss2des .............................................................................................................. 372ss2ss ................................................................................................................ 373ss2tf ................................................................................................................ 375st_ility ............................................................................................................. 376stabil ............................................................................................................... 378svplot .............................................................................................................. 380sysfact ............................................................................................................. 382syssize ............................................................................................................. 383tf2des .............................................................................................................. 384tf2ss ................................................................................................................ 385time_id ............................................................................................................ 386trzeros ............................................................................................................. 388ui_observer ....................................................................................................... 390unobs ............................................................................................................... 392zeropen ............................................................................................................ 393

  • Scilab manual

    ix

    zgrid ................................................................................................................ 394V. Compatibility Functions .......................................................................................... 395

    asciimat ........................................................................................................... 396firstnonsingleton ................................................................................................ 397makecell .......................................................................................................... 398mstr2sci ........................................................................................................... 399mtlb_0 ............................................................................................................. 400mtlb_a ............................................................................................................. 401mtlb_all ........................................................................................................... 402mtlb_any .......................................................................................................... 403mtlb_axis ......................................................................................................... 404mtlb_beta ......................................................................................................... 405mtlb_box .......................................................................................................... 406mtlb_close ........................................................................................................ 407mtlb_colordef .................................................................................................... 408mtlb_conv ........................................................................................................ 409mtlb_cumprod ................................................................................................... 410mtlb_cumsum ................................................................................................... 411mtlb_dec2hex .................................................................................................... 412mtlb_delete ....................................................................................................... 413mtlb_diag ......................................................................................................... 414mtlb_diff .......................................................................................................... 415mtlb_dir ........................................................................................................... 416mtlb_double ...................................................................................................... 417mtlb_e ............................................................................................................. 418mtlb_echo ........................................................................................................ 419mtlb_eig ........................................................................................................... 420mtlb_eval ......................................................................................................... 421mtlb_exist ........................................................................................................ 422mtlb_eye .......................................................................................................... 423mtlb_false ........................................................................................................ 424mtlb_fft ............................................................................................................ 425mtlb_fftshift ...................................................................................................... 426mtlb_find ......................................................................................................... 427mtlb_findstr ...................................................................................................... 428mtlb_fliplr ........................................................................................................ 429mtlb_fopen ....................................................................................................... 430mtlb_format ...................................................................................................... 431mtlb_fprintf ...................................................................................................... 432mtlb_fread ........................................................................................................ 433mtlb_fscanf ....................................................................................................... 434mtlb_full .......................................................................................................... 435mtlb_fwrite ....................................................................................................... 436mtlb_grid ......................................................................................................... 437mtlb_hold ......................................................................................................... 438mtlb_i .............................................................................................................. 439mtlb_ifft ........................................................................................................... 440mtlb_imp .......................................................................................................... 441mtlb_int16 ........................................................................................................ 442mtlb_int32 ........................................................................................................ 443mtlb_int8 .......................................................................................................... 444mtlb_is ............................................................................................................ 445mtlb_isa ........................................................................................................... 446mtlb_isfield ...................................................................................................... 447mtlb_isletter ...................................................................................................... 448mtlb_isspace ..................................................................................................... 449mtlb_l .............................................................................................................. 450mtlb_legendre ................................................................................................... 451

  • Scilab manual

    x

    mtlb_linspace .................................................................................................... 452mtlb_load ......................................................................................................... 453mtlb_logic ........................................................................................................ 454mtlb_logical ...................................................................................................... 455mtlb_lower ....................................................................................................... 456mtlb_max ......................................................................................................... 457mtlb_min .......................................................................................................... 458mtlb_more ........................................................................................................ 459mtlb_num2str .................................................................................................... 460mtlb_ones ......................................................................................................... 461mtlb_plot .......................................................................................................... 462mtlb_prod ......................................................................................................... 463mtlb_rand ......................................................................................................... 464mtlb_randn ....................................................................................................... 465mtlb_rcond ....................................................................................................... 466mtlb_realmax .................................................................................................... 467mtlb_realmin ..................................................................................................... 468mtlb_repmat ...................................................................................................... 469mtlb_s ............................................................................................................. 470mtlb_save ......................................................................................................... 471mtlb_setstr ........................................................................................................ 472mtlb_size .......................................................................................................... 473mtlb_sort .......................................................................................................... 474mtlb_strcmp ...................................................................................................... 475mtlb_strcmpi ..................................................................................................... 476mtlb_strfind ...................................................................................................... 477mtlb_strrep ....................................................................................................... 478mtlb_sum ......................................................................................................... 479mtlb_t .............................................................................................................. 480mtlb_toeplitz ..................................................................................................... 481mtlb_tril ........................................................................................................... 482mtlb_triu .......................................................................................................... 483mtlb_true .......................................................................................................... 484mtlb_uint16 ...................................................................................................... 485mtlb_uint32 ...................................................................................................... 486mtlb_uint8 ........................................................................................................ 487mtlb_upper ....................................................................................................... 488mtlb_zeros ........................................................................................................ 489

    VI. Completion ......................................................................................................... 490completion ........................................................................................................ 491

    VII. Data Structures ................................................................................................... 492cell .................................................................................................................. 493definedfields ..................................................................................................... 495getfield ............................................................................................................ 496hypermat .......................................................................................................... 497hypermatrices .................................................................................................... 498iscell ............................................................................................................... 499iscellstr ............................................................................................................ 500isstruct ............................................................................................................. 501list .................................................................................................................. 502lsslist ............................................................................................................... 504lstcat ............................................................................................................... 505mlist ................................................................................................................ 506rlist ................................................................................................................. 508setfield ............................................................................................................. 509struct ............................................................................................................... 510tlist ................................................................................................................. 511

    VIII. Development tools ............................................................................................. 512

  • Scilab manual

    xi

    tbx_build_gateway ............................................................................................. 513tbx_build_gateway_loader ................................................................................... 514tbx_build_help .................................................................................................. 515tbx_build_help_loader ........................................................................................ 516tbx_build_loader ................................................................................................ 517tbx_build_macros ............................................................................................... 518tbx_build_src .................................................................................................... 519tbx_builder_gateway .......................................................................................... 521tbx_builder_gateway_lang ................................................................................... 522tbx_builder_help ................................................................................................ 523tbx_builder_help_lang ........................................................................................ 524tbx_builder_macros ............................................................................................ 525tbx_builder_src .................................................................................................. 526tbx_builder_src_lang .......................................................................................... 527test_run ............................................................................................................ 528

    IX. Differential Equations ........................................................................................... 530dasrt ................................................................................................................ 531dassl ................................................................................................................ 535feval ................................................................................................................ 538impl ................................................................................................................ 539int2d ................................................................................................................ 541int3d ................................................................................................................ 543intg ................................................................................................................. 546ode .................................................................................................................. 548ode_discrete ...................................................................................................... 553ode_optional_output ........................................................................................... 554ode_root ........................................................................................................... 556odedc ............................................................................................................... 558odeoptions ........................................................................................................ 561

    X. Dynamic/incremental Link ...................................................................................... 563G_make ........................................................................................................... 564VCtoLCCLib .................................................................................................... 565addinter ............................................................................................................ 566c_link .............................................................................................................. 567call .................................................................................................................. 568chooselcccompiler .............................................................................................. 571configure_lcc .................................................................................................... 572configure_ifort .................................................................................................. 573configure_msvc ................................................................................................. 574dllinfo .............................................................................................................. 575findlcccompiler ................................................................................................. 576findmsifortcompiler ............................................................................................ 577findmsvccompiler .............................................................................................. 578fort .................................................................................................................. 579getdynlibext ...................................................................................................... 582haveacompiler ................................................................................................... 583ilib_build .......................................................................................................... 584ilib_compile ...................................................................................................... 586ilib_for_link ...................................................................................................... 587ilib_gen_Make .................................................................................................. 589ilib_gen_gateway ............................................................................................... 591ilib_gen_loader .................................................................................................. 592ilib_mex_build .................................................................................................. 593link ................................................................................................................. 594ulink ................................................................................................................ 596with_lcc ........................................................................................................... 597

    XI. Elementary Functions ............................................................................................ 598abs .................................................................................................................. 599

  • Scilab manual

    xii

    acos ................................................................................................................. 600acosh ............................................................................................................... 601acoshm ............................................................................................................ 602acosm .............................................................................................................. 603adj2sp .............................................................................................................. 604amell ............................................................................................................... 605and .................................................................................................................. 606asin ................................................................................................................. 607asinh ............................................................................................................... 608asinhm ............................................................................................................. 609asinm ............................................................................................................... 610atan ................................................................................................................. 611atanh ............................................................................................................... 613atanhm ............................................................................................................. 614atanm .............................................................................................................. 615base2dec .......................................................................................................... 616bin2dec ............................................................................................................ 617binomial ........................................................................................................... 618bitand .............................................................................................................. 620bitor ................................................................................................................ 621bloc2exp .......................................................................................................... 622bloc2ss ............................................................................................................ 625cat ................................................................................................................... 628ceil .................................................................................................................. 629cell2mat ........................................................................................................... 630cellstr .............................................................................................................. 631char ................................................................................................................. 632conj ................................................................................................................. 634cos .................................................................................................................. 635cosh ................................................................................................................ 636coshm .............................................................................................................. 637cosm ............................................................................................................... 638cotg ................................................................................................................. 639coth ................................................................................................................. 640cothm .............................................................................................................. 641cumprod ........................................................................................................... 642cumsum ........................................................................................................... 643dec2bin ............................................................................................................ 644dec2hex ........................................................................................................... 645dec2oct ............................................................................................................ 646delip ................................................................................................................ 647diag ................................................................................................................. 648diff .................................................................................................................. 649double ............................................................................................................. 650dsearch ............................................................................................................ 651eval ................................................................................................................. 653exp .................................................................................................................. 654eye .................................................................................................................. 655factor ............................................................................................................... 656fix ................................................................................................................... 657flipdim ............................................................................................................. 658floor ................................................................................................................ 659frexp ............................................................................................................... 660gsort ................................................................................................................ 661hex2dec ........................................................................................................... 663imag ................................................................................................................ 664imult ............................................................................................................... 665ind2sub ............................................................................................................ 666

  • Scilab manual

    xiii

    int ................................................................................................................... 667int8 ................................................................................................................. 668intc ................................................................................................................. 670integrate ........................................................................................................... 671interp1 ............................................................................................................. 672interp2d ........................................................................................................... 674intersect ........................................................................................................... 676intl .................................................................................................................. 678inttrap .............................................................................................................. 679isdef ................................................................................................................ 680isempty ............................................................................................................ 681isequal ............................................................................................................. 682isequalbitwise ................................................................................................... 683isinf ................................................................................................................. 684isnan ............................................................................................................... 685isreal ............................................................................................................... 686kron ................................................................................................................ 687lex_sort ............................................................................................................ 688linspace ............................................................................................................ 689log .................................................................................................................. 690log10 ............................................................................................................... 691log1p ............................................................................................................... 692log2 ................................................................................................................. 693logm ................................................................................................................ 694logspace ........................................................................................................... 695lstsize .............................................................................................................. 696max ................................................................................................................. 697maxi ................................................................................................................ 698meshgrid .......................................................................................................... 699min ................................................................................................................. 700mini ................................................................................................................ 701minus .............................................................................................................. 702modulo ............................................................................................................ 703ndgrid .............................................................................................................. 704ndims .............................................................................................................. 706nearfloat ........................................................................................................... 707nextpow2 ......................................................................................................... 708norm ............................................................................................................... 709not .................................................................................................................. 710number_properties ............................................................................................. 711oct2dec ............................................................................................................ 713ones ................................................................................................................ 714or .................................................................................................................... 715pen2ea ............................................................................................................. 716perms .............................................................................................................. 717permute ............................................................................................................ 718pertrans ............................................................................................................ 719primes ............................................................................................................. 720prod ................................................................................................................ 721rand ................................................................................................................. 722rat ................................................................................................................... 724real ................................................................................................................. 725resize_matrix .................................................................................................... 726round ............................................................................................................... 728setdiff .............................................................................................................. 729sign ................................................................................................................. 730signm .............................................................................................................. 731sin ................................................................................................................... 732

  • Scilab manual

    xiv

    sinc ................................................................................................................. 733sinh ................................................................................................................. 734sinhm .............................................................................................................. 735sinm ................................................................................................................ 736size ................................................................................................................. 737solve ............................................................................................................... 739sort ................................................................................................................. 740sp2adj .............................................................................................................. 742speye ............................................................................................................... 743splin2d ............................................................................................................. 744spones ............................................................................................................. 747sprand .............................................................................................................. 748spzeros ............................................................................................................ 749sqrt ................................................................................................................. 750sqrtm ............................................................................................................... 751squarewave ....................................................................................................... 752ssprint .............................................................................................................. 753ssrand .............................................................................................................. 754sub2ind ............................................................................................................ 756sum ................................................................................................................. 757sysconv ............................................................................................................ 758sysdiag ............................................................................................................ 760syslin ............................................................................................................... 761tan .................................................................................................................. 763tanh ................................................................................................................. 764tanhm .............................................................................................................. 765tanm ................................................................................................................ 766toeplitz ............................................................................................................ 767trfmod ............................................................................................................. 768trianfml ............................................................................................................ 769tril ................................................................................................................... 770trisolve ............................................................................................................ 771triu .................................................................................................................. 772typeof .............................................................................................................. 773union ............................................................................................................... 775unique ............................................................................................................. 777vectorfind ......................................................................................................... 779zeros ............................................................................................................... 780

    XII. FFTW ............................................................................................................... 781fftw ................................................................................................................. 782fftw_flags ......................................................................................................... 784fftw_forget_wisdom ........................................................................................... 786get_fftw_wisdom ............................................................................................... 787set_fftw_wisdom ............................................................................................... 788

    XIII. Files : Input/Output functions ............................................................................... 789basename ......................................................................................................... 790copyfile ............................................................................................................ 791createdir ........................................................................................................... 792deletefile .......................................................................................................... 793dir ................................................................................................................... 794dirname ............................................................................................................ 795dispfiles ........................................................................................................... 796fileext .............................................................................................................. 797fileparts ............................................................................................................ 798filesep .............................................................................................................. 799findfiles ........................................................................................................... 800fprintf .............................................................................................................. 801fprintfMat ......................................................................................................... 802

  • Scilab manual

    xv

    fscanf .............................................................................................................. 803fscanfMat ......................................................................................................... 804fullfile ............................................................................................................. 805fullpath ............................................................................................................ 806getdrives .......................................................................................................... 807getlongpathname ................................................................................................ 808getshortpathname ............................................................................................... 809isdir ................................................................................................................. 810listfiles ............................................................................................................. 811listvarinfile ....................................................................................................... 812ls .................................................................................................................... 813maxfiles ........................................................................................................... 814mclearerr .......................................................................................................... 815mclose ............................................................................................................. 816mdelete ............................................................................................................ 817meof ................................................................................................................ 818merror ............................................................................................................. 819mscanf ............................................................................................................. 820mget ................................................................................................................ 823mgetl ............................................................................................................... 825mgetstr ............................................................................................................ 826mkdir ............................................................................................................... 827mopen ............................................................................................................. 828mfprintf ........................................................................................................... 830mput ................................................................................................................ 832mputl ............................................................................................................... 834mputstr ............................................................................................................ 835mseek .............................................................................................................. 836mtell ................................................................................................................ 837pathconvert ....................................................................................................... 838pathsep ............................................................................................................ 839removedir ......................................................................................................... 840rmdir ............................................................................................................... 841save_format ...................................................................................................... 842scanf ............................................................................................................... 845scanf_conversion ............................................................................................... 846

    XIV. Functions ......................................................................................................... 848add_profiling .................................................................................................... 849bytecode .......................................................................................................... 850bytecodewalk .................................................................................................... 851fun2string ......................................................................................................... 852function ........................................................................................................... 853functions .......................................................................................................... 855genlib .............................................................................................................. 857get_function_path .............................................................................................. 858getd ................................................................................................................. 859head_comments ................................................................................................. 860library .............................................................................................................. 861listfunctions ...................................................................................................... 862macro .............................................................................................................. 863macrovar .......................................................................................................... 864plotprofile ........................................................................................................ 865profile .............................................................................................................. 866recompilefunction .............................................................................................. 867remove_profiling ............................................................................................... 868reset_profiling ................................................................................................... 869showprofile ....................................................................................................... 870varargin ........................................................................................................... 871

  • Scilab manual

    xvi

    varargout .......................................................................................................... 872XV. GUI .................................................................................................................. 873

    about ............................................................................................................... 874addmenu .......................................................................................................... 875buttondialog ...................................................................................................... 877clipboard .......................................................................................................... 878close ................................................................................................................ 879delmenu ........................................................................................................... 880exportUI .......................................................................................................... 881figure ............................................................................................................... 882findobj ............................................................................................................. 884gcbo ................................................................................................................ 885getcallbackobject ............................................................................................... 886getinstalledlookandfeels ...................................................................................... 887getlookandfeel ................................................................................................... 888getvalue ........................................................................................................... 889messagebox ...................................................................................................... 891printfigure ........................................................................................................ 893printsetupbox .................................................................................................... 894progressionbar ................................................................................................... 895root_properties .................................................................................................. 896setlookandfeel ................................................................................................... 897setmenu ........................................................................................................... 899toolbar ............................................................................................................. 900toprint .............................................................................................................. 901uicontrol .......................................................................................................... 903uigetcolor ......................................................................................................... 908uigetdir ............................................................................................................ 910uigetfont .......................................................................................................... 911uimenu ............................................................................................................ 913unsetmenu ........................................................................................................ 915waitbar ............................................................................................................ 916x_choices ......................................................................................................... 917x_choose .......................................................................................................... 918x_choose_modeless ............................................................................................ 919x_dialog ........................................................................................................... 920x_matrix .......................................................................................................... 921x_mdialog ........................................................................................................ 922x_message ........................................................................................................ 923x_message_modeless .......................................................................................... 924xgetfile ............................................................................................................ 925

    XVI. Genetic Algorithms ............................................................................................ 926coding_ga_binary .......................