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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by