assigning a variable to an output of a function at a certain time

1 回表示 (過去 30 日間)
Natalie Fuhr
Natalie Fuhr 2019 年 2 月 16 日
回答済み: Matt J 2019 年 2 月 16 日
I using Euler's method to find the value of a function at t=1 and assign it to a variable called "yone". How do I do this? I tried simply "y(1) = yone" and this throws an error.

回答 (1 件)

Matt J
Matt J 2019 年 2 月 16 日
t=1;
yone=yourFunction(t);

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by