使用資料表值的 Y 函數我正在嘗試建立多個圖錶框,每個圖錶框都繪製一個 Y 函數,該函數從資料表中獲取值。這應該很容易,但我無法讓圖表顯示在圖錶框中。它適用於硬編碼的數字,但不適用於資料表中的值。
win = New Window("window", vlb = V List Box());
For (i=1, i <= N Rows(dt), i++,
vlb << Append(Graph Box(Y Function((dt:M)[i] * x ,x)));
);
任何幫助都將不勝感激
自動化和腳本回覆:使用資料表值的 Y 函數如果你查看創建的腳本,你會發現這些值不存在

這是因為你必須評估它們。類似這樣的方法應該有效
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, "height") << Set Name("M");
nw = New Window("window", vlb = V List Box());
For Each Row(dt,
Eval(EvalExpr(
vlb << Append(Graph Box(Y Function(Expr(dt[Row(), "M"]) * x ,x)));
))
);
</CODE></P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1750157594825.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_1-1750157594825.png" style="width: 400px;"><img src="https://us.v-cdn.net/6038925/uploads/images/77001i5D138430DC26CFF8/jthi_1-1750157594825.png" role="button" title="jthi_1-1750157594825.png" alt="jthi_1-1750157594825.png" /></span></SPAN></P>
<BR />
<P>Also use for each row when looping over data table as it is meant for it<CODE class=" language-jsl">