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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

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

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by