File: demos.dialogs

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (467 lines) | stat: -rw-r--r-- 12,653 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
1 //Introduction to scilab
2 //Graphics I
 1   //plot2d 
 2   //plot2d1
 3   //plot2d3
 4   //plot2d1
 5   //Histplot
 6   //fplot2d
 7   //param3d
 8   //param3d
 9   //plot3d
 10  //fplot3d
 11  //plot3d1
 12  //fplot3d1
 13  //contour
 14  //fcontour
 15  //champ
 16  //fchamp
 17  //grayplot
 18  //fgrayplot
 19  //errbar
 20  //abaque
 21  //zgrid
 22  //xgeom 1
 23  //xgeom 2
 24  //contour (3d) 2
 25  //contour (3d) 3
 26  //contour (3d) 4
 27  //plot2d+gr_menu
 28  //plot3d+gr_menu
 29  //plots+xsetech
 30  //fac3d
 31  //fac3d1
 0   //exit
3 //Graphics : Xprimitives
 1   //Graphics X11 1
 2   //Graphics X11 2
 3   //Graphics X11 3
 4   //Graphics X11 4
 5   //Graphics X11 5
 6   //Graphics X11 6
 7   //Graphics X11 7
 8   //Graphics X11 8
 0   //exit
4 //Graphics : Animation
 1   // rotation of a 3D Surface (plot3d1)
 2   // 3D curve param3d 
 3   // lorenz curve
 4   // rotation of a 3D contour
 5   // Evolution of a 3D surface Plot3d
 6   // N pendulum
 7   // Plot3d1 with xtape
 8   // shell
 0   //exit
5 //Graphics : Finite Elements
 1   // Graphics : Fec 1
 2   // Graphics : Fec 2
 3   // Graphics : Fec 3
 4   // Graphics : Fec 4
 0   //exit
6 //graphics : more surfaces
 1   // surface with holes 1
 2   // surface with holes 2
 3   // sphere
 4   // shell
 5   // spiral
 6   // ring
 7   // torus
 8   // torus 1
 9   // moebius
 10  // tube
 11  // Black hole
 10  // Rieman surface
 0   //exit
7 // Bezier curves and surfaces
 1   // gammatest
 2   // 2D curve bezier
 3   // 3D curve bezier
 4   // bezier surface test
 5   // bezier surface test 2
 0   //exit
8  //misc
9 //Inverted pendulum
10 //n-pendulum
  1  //read a precomputed trajectory
10 //n-pendulum
  2  //Simulation with ode (may fail)
    2 //Go on
        -1.3912301// theta1
        -1.6560533// theta2
        -3.1197583// theta3
        -1.5835081// theta4
        -1.5713455// theta5
        -1.1955653// theta6
        -8.2452393// theta7
        -1.3010066// theta8
        1.1671875// theta9
        -18.619763// theta10
        1.4255478// thetad1
        -6.5174875// thetad2
        2.2944054// thetad3
        2.3835463// thetad4
        -5.9062465// thetad5
        9.8190264// thetad6
        -0.8858167// thetad7
        -15.979205// thetad8
        -14.57535// thetad9
        0.4054334// thetad10
       o         //Ok
     1 //With last point trajectory
    1 // Stop
11  // Car parking
 Ok   //Ok
 1   //car
    0           //x_0
    4           //y_0
    1.0471976   //theta
    -0.5235988  //phi
    o           //Ok
 2   //Two trailer truck
    -2          //x2
     3          //y2
     0.5235988  //theta2
     0          //theta12
     0          //theta10
     1          //phi
     o          //Ok
 0  //Exit Car parking
12  //Wheel Simulation 
  1   //reading a precomputed trajectory
12  //Wheel Simulation 
  2   // simulation with ode (may fail)
    2   // Go on
       -10.940468 //phi
        1.0631321 //theta
        73.444368 //psi
       -1.3947561 //Dpsi
       -3.5513231 //Dtheta
        3.6337222 //Dpsi
       -1.5013428 //x
        3.5348768 //y
        o         //Ok
    1  //Stop
13 //Bike Simulation (1)
  1  // bike-1 
  2  // bike-2
  3  // bike-3
  4  // bike-4
  5  // bike-4p
  6  // bike-5
  0  // Exit Bike Simulation (1)
14  //Bike Simulation (2)
15  //Bike Picture
16  //Signal Processing
  1    // Spectral Estimation
  2    // IIR filter Design
     lp         //type
     3          //order
     ellip      //design
     0.15 0.25  //cut-off frequencies
     0.08 0.035 // error values
     o          //Ok
  2   // IIR filter Design
     bp         //type
     3          //order
     butt       //design
     0.15 0.25  //cut-off frequencies
     0.08 0.030 // error values
     o           //Ok
  3   // Minimax FIR filter design
  0 //Exit Signal Processing
18 //Fortran translator
  1 // Clauses,loops and operations
  2 // matrix concatenation
  3 // concatenation and inversion
  4 // call of simple primitives
  5 // operations with complex
  6 // matrix division
  0    //Exit
19 // ODE'S  
  1 // Simple ode
  2 // Chemical process (Stiff)
  3 // Chemical process (implicit)
  4 // Lorenz equation
  0    //Exit
20 // ARMA
  1 // Arma 1
  2 // Arma 2
  3 // Spectral power
  0 // Exit
21 // Tracking
22 // Robust control
23 //LMITOOL
  1  // H_infinity gain
  default
  c
  [0,1,0;2,3,1;-1,-2,0]
  [1,0;-2,1;0,1]
  [1,2,0;0,1,-2]
  [0,0;0,0]
  o
  2  // Output Feedback
  default
  c
  [0,1,0;2,3,1;-1,-2,0]  // A
  [1,0;-2,1;0,1]         // B
  [1,2,0;0,1,-2]         // C
  o
  3  // Sylvester equation
  default
  c
  [0,1,0;2,3,1;-1,-2,0]  // A
  [1,0;-2,1]             // B
  [1,2;0,1;1,-2]         // C
  o
  0 // Exit
24 //METANET
  Yes //try the demo
    5   //Alfort-Ecole Veterinaire
    16  //Bastille
    1   //Zoom of the path (Yes)
  1 // another travel (yes)
    9   //Argentine
    1   //INRIA
    Travel   //TRavel
    10  //
    1   //INRIA
    Cancel   //cancel
    15   //
    16  //Bastille
    2   //Zoom of the path (No)
  2 //another travel (no)
25 //Control Examples
  1 // LQG
    1  // Continuuous time
      [(s-1)/(s^2-5*s+1)] // system
      o                   //OK
      [1, 0; 0, 1]        //x_weighting matrix
      o                   //OK
      1                   //u_weighting matrix
      o                   //OK
      [1, 0; 0, 1]        // x-noise cov matrix
      o                   //OK
      1                   // y-noise cov matrix
      o                   //OK
         1                // Frequency response
         2                // time response
           0.1              //sampling period
           20               //tmax
           o                //ok
             1                //step response
         2                // time response
           0.1              //sampling period
           20               //tmax
           o                //ok
             2                //Impulse response
         0                // Cancel
  1 // LQG
    2  // Discrete time
      (z+1)/(z^2-5*z+2)
      o                   //OK
      [1, 0; 0, 1]        //x_weighting matrix
      o                   //OK
      1                   //u_weighting matrix
      o                   //OK
      [1, 0; 0, 1]        // x-noise cov matrix
      o                   //OK
      1                   // y-noise cov matrix
      o                   //OK
         1                // Frequency response
         2                // time response
           30               //tmax
           o                //ok
             1                //step response
         2                // time response
           30               //tmax
           o                //ok
             2                //Impulse response
         0               // Cancel
  2  // Mixed sensitivity
      (s-1)/((s-1)^2*(s+2)) // Nominal plant
      o                     // Ok
      s                     // W1
      1                     // W2
      1                     // W3
      o                     // Ok
      0.01                  //gamma min
      1000                  //gamma max
      50                    // #iterations
      o                     // Ok
      Yes                   // S function
      No                    // R function
      Yes                   // T function
      o                     // Ok
  3  // PID
      1                     // Continuuous time
      (s-1)/(s^2+5*s+1)     // Nominal plant
      o                     // Ok
      -1.2                  // Kp
      1                     // T0
      0.1                   // T1
      o                     // Ok
         1                // Frequency response
         2                // time response
           0.1              //sampling period
           50               //tmax
           o                //ok
             1                //step response
         2                // time response
           0.1              //sampling period
           50               //tmax
           o                //ok
             2                //Impulse response
         0                // Cancel
  0 //Exit Control examples
26 //scicos
 1  //Thermostat
     -2,0,450,-1,'execstr(Simulate_0(4))' //Run
     -2,0,450,-1,'execstr(Object_0(1))' //Open
      0,482.22,50.18,0,' ' //Scope
        1 3 5 7 9 11 13 15      //colors
        1   //output window
        [122;172]     //output window position
        [600;400]     //output window size
        -16    //ymin
        15     //ymax
        30     //refresh period
        20      //buffer size
        1      // Accept herited events
        o      //ok
     -2,0,450,-1,'execstr(Simulate_0(4))'//Run
        2//restart
     -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  2 // Continuous plant ..
       -2,0,450,-1,'execstr(Object_0(1))' //Open
       0,295.42,232.1,0,' ' // Block num/den
    1   //Numerator
    1+s //denominator
    o   //ok
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  3 //Simple demo
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  4 //Bouncing Ball
       -2,0,450,-1,'execstr(Object_0(1))' //Open
       0,253.8,232.4,0,' ' // Block
       -2,0,450,-1,'execstr(Diagram_1(14))'//Exit
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  5 //Table Lookup
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  6 //Threshold
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
    Exit
  7 //Scilab Block
       -2,0,450,-1,'execstr(Object_0(1))' //Open
       0,267.00508,203.92405,0,' ' //Block
        [] //input port sizes
        1  //output port sizes
        1  //input event port sizes
        1  //output event port sizes
        [] //initial continuous state
        1  //initial discrete state
        1  //system parameter vector
        0  //initial firing
        o //ok
        y1=z
        o //ok
        z=-z
        o //ok
        t_evo=(5*rand)^2+t
        o //ok

        o //ok

        o //ok

        o //ok
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
       Exit
  8 //Thermostat
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
  9 // Fibonacci
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
  10 // Cont.Disc-Observer
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
       Exit
  11 // Controller
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
       Exit
  12 // system observer
       -2,0,450,-1,'execstr(Simulate_0(4))' //Run
       -2,0,450,-1,'execstr(Diagram_0(14))'//Exit
       Exit
  0 //Exit scicos demo
27  // sounds
28  //random
  1  // Binomial 
  2  // discrete
  3  // geometric
  4  // Poisson
  5  // exponential
  6  // Weibull
  7  // hyper geometric
  8  // Erlang
  0  // Exit random demo
29  // Communication with PVM
  o // start daemon
  o // start another scilab
  o // send simple instruction
  o // create a matrix A
  o // ask second process to compute eigenvalues
  o // send back the eigenvalues
  o // receive the eigenvalues
30  // Fractal signal analysis
  1 //Generalized Weierstrass Synthesys and Local Holder Estimation
    1024 //length
    0.2  //Holder: starting value
    0.8	 //Holder: ending value
    0	 //smoothness of Holder fnc
    2	 //lambda
    1	 //time support
    slope//limit time
    o //OK
  2 //Binomial Measure Synthesis ans Multifractal Spectrum Est
    0.3 0.7 //weight
    10	    //number of cascades
    1 8 4   //Min scale, max scale, Nb scale
    dec	    // Scale progression
    cent    //Ball type
    200	    //Holder sampling rate
    o //OK
  3 // fBm Synthesis ans Wavelet transform
    512	    //Number of time samples
    0.5	    //Holder exponent
    1 5 128 //Min scale, max scale, Nb scale
    Morlet  //Wavelet type
    o //OK
  3 // fBm Synthesis ans Wavelet transform
    512	    //Number of time samples
    0.5	    //Holder exponent
    1 5 128 //Min scale, max scale, Nb scale
    Mexican  //Wavelet type
    o //OK
  4 //Alpha stable process synthesis and estimation
    1.5  // Characteristic exponent
    0	 // Skewness parameter
    0	 // Location parameter
    1	 // Scale parameter
    5000 // Sample size
    o //OK
    o //OK    (estimated alpha...)
  0 //exit fractal demo
0 //EXIT DEMOS