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

1 Ansicht (letzte 30 Tage)
Natalie Fuhr
Natalie Fuhr am 16 Feb. 2019
Beantwortet: Matt J am 16 Feb. 2019
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.

Antworten (1)

Matt J
Matt J am 16 Feb. 2019
t=1;
yone=yourFunction(t);

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by