HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

for

for 文は、手順を繰り返し行うためのループ構造に使用します。

 

構文

トランスフォーム方程式の命令文は、for ループ内で繰り返し評価されます。for 文に入ると、ループ内のすべての関数はループ外のトランスフォームとは別に評価されます。

loop variable には、まだ宣言されていない変数名を指定します。initial value は、ループ文の最初に使用する初期値です。ループ変数の end value は for 文で実行する最後の値を指定します。終了値まで実行すると、ループは終了します。また、ループ変数のステップ increment を指定して、1ループ終了する度に初期値に増分を加算してゆきます。increment を省略した場合、増分は 1 として実行されます。

Note: for , to , step , do , end for およびすべての条件演算子は変数および数値とスペースで区切る必要があります。for ループ文の後に、ループ変数を実行するトランスフォーム方程式を1つ以上記述します。

 

ループ内では以下のことが可能です:

これらの条件は、for ループ内でのみ有効です。ループ内で変数名を再定義することはできません。

 

例 1

例 2

for

The for statement is a looping construct used for iterative processing.

Syntax

Transform equation statements are evaluated iteratively within the for loop. When a for statement is encountered, all functions within the loop are evaluated separately from the rest of the transform.

The loop variable can be any previously undeclared variable name. The initial value for the loop is the beginning value to be used in the loop statements. The end value for the loop variable specifies the last value to be processed by the for statement. After the end value is processed, the loop is terminated. In addition, you can specify a loop variable step increment, which is used to “skip” values when proceeding from the initial value to end value. If no increment is specified, an increment of 1 is assumed.

Note: You must separate for, to, step, do, end for, and all condition statement operators, variables and values with spaces. The for loop statement is followed by a series of one or more transform equations which process the loop variable values.

Inside for loops, you can:

Note that these conditions are allowed only within for loops. You cannot redefine variable names within for loops.

Example 1

Example 2

 

 

前のページにもどる