- Timestamp:
- 09/16/2007 09:55:10 AM (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Modelica/branches/maintenance/2.2.2/Modelica/Blocks/Tables.mo
r550 r631 488 488 ----------------------------------------------------- 489 489 #1 490 double tab1(5,2) # comment line 491 0 0 492 1 1 493 2 4 494 3 9 495 4 16 496 double tab2(5,2) # another comment line 497 0 0 498 2 2 499 4 8 500 6 18 501 8 32 490 double table2D_1(3,4) # comment line 491 0.0 1.0 2.0 3.0 # u[2] grid points 492 1.0 1.0 3.0 5.0 493 2.0 2.0 4.0 6.0 494 495 double table2D_2(4,4) # comment line 496 0.0 1.0 2.0 3.0 # u[2] grid points 497 1.0 1.0 3.0 5.0 498 2.0 2.0 4.0 6.0 499 3.0 3.0 5.0 7.0 502 500 ----------------------------------------------------- 503 501 </pre> … … 508 506 rows of the file, the elements of the matrix have to be given. 509 507 Several matrices may be defined one after another. 510 </p> 511 </HTML> 508 The matrix elements are interpreted in exactly the same way 509 as if the matrix is given as a parameter. For example, the first 510 column \"table2D_1[2:,1]\" contains the u[1] grid points, 511 and the first row \"table2D_1[1,2:]\" contains the u[2] grid points. 512 </p> 513 514 </html> 512 515 "), Icon( 513 516 Line(points=[-60, 40; -60, -40; 60, -40; 60, 40; 30, 40; 30, -40; -30,
