Skip to content

Commit

Permalink
Update Modelica/Blocks/Tables.mo
Browse files Browse the repository at this point in the history
Changed documentation to reflect that multiple inputs and outputs are possible.
  • Loading branch information
paultjevdh committed Apr 5, 2024
1 parent 183d581 commit 8f91978
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modelica/Blocks/Tables.mo
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ extrapolation = 1: Hold the first or last value of the table,
two table points.).
= 3: Periodically repeat the table data (periodical function),
where the repetition period is table[end,1]-table[1,1].
For u = table[end,1] the result is table[end,2]. However for the
limit of u downwards to table[end,1] the result is table[<strong>1</strong>,2].
For u = table[end,1] the output(-array) is table[end,columns]. However for the
limit of u downwards to table[end,1] the result is table[<strong>1</strong>,columns].
This implies that for correct reproduction of a periodic function
the first and last data values should be the same
(table[1,2] = table[end,2]).
the first and last data rows should be the same
(table[1,2:end] = table[end,2:end]).
= 4: No extrapolation, i.e. extrapolation triggers an error
</pre></blockquote></li>
<li>If the table has only <strong>one row</strong>, the table value is returned,
Expand Down

0 comments on commit 8f91978

Please sign in to comment.