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

1 vue (au cours des 30 derniers jours)
Natalie Fuhr
Natalie Fuhr le 16 Fév 2019
Réponse apportée : Matt J le 16 Fév 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.

Réponses (1)

Matt J
Matt J le 16 Fév 2019
t=1;
yone=yourFunction(t);

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by