# Using an equation to calculate value for each number in data set

4 ビュー (過去 30 日間)
Sophie Stringer 2019 年 11 月 6 日
コメント済み: Sophie Stringer 2019 年 11 月 6 日
Hi there,
I have a data set with 122736 x 1 values. I have an equation I want to apply to each value in the data set, to get a new variable of 122736 x 1, but representing a different term.
The equation is attached below.
So the data set I have is my T value. And the new data set I want to create will be the P value.
Any suggestions is be greatly appreciated.
Thank you :)

サインインしてコメントする。

### 回答 (1 件)

Bhaskar R 2019 年 11 月 6 日
P = 0.61121*exp((18.678-T/234.5).*(T./(257.14+T)));
##### 1 件のコメント表示非表示 なし
Sophie Stringer 2019 年 11 月 6 日
Thank you for the reply. I was more wondering how to apply the equation to each number in my data set, creating a new data set with the answers. I was thinking some sort of loop function would do it....

サインインしてコメントする。

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by