Solve for, and then substitute.
古いコメントを表示
I posted before, but I am not getting the answers I am looking for. This is a simplified version of what I want to do.
say, f(t)=y*t, and we are given an initial condition f(1)=10. We can use this information to solve for y..
Now that we know, y=10, solve for f(2)=?, obviously f(2) will equal 20.
How can I write this code in MATLAB?
2 件のコメント
Kyle Langford
2022 年 2 月 19 日
編集済み: Walter Roberson
2022 年 2 月 19 日
Kyle Langford
2022 年 2 月 19 日
採用された回答
その他の回答 (1 件)
you can use anonymous function:
y=10;
f=@(t) y*t;
f(1)
f(2)
カテゴリ
ヘルプ センター および File Exchange で Common Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
