How do you express this function in MATLAB syntax ?
3 ビュー (過去 30 日間)
古いコメントを表示
𝑓(𝑥) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?
0 件のコメント
採用された回答
KSSV
2020 年 6 月 9 日
編集済み: KSSV
2020 年 6 月 9 日
f = exp(x)+sin(5*x) ; % define x before
f = @(x) exp(x)+sin(5*x) ; % call by f(value) This is called Anonymous function
5 件のコメント
Walter Roberson
2020 年 6 月 9 日
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!