How to save function as f.m?

6 ビュー (過去 30 日間)
Dylan Longoria
Dylan Longoria 2022 年 6 月 18 日
編集済み: Voss 2022 年 6 月 19 日
This may sound simple but I am still new to this. I don't know to save thr below funtion as f.m?? Right now it is an mlx??
function dYdt=f(t,Y)
y=Y(1); v=Y(2);
dYdt = [v; -7*sin(t)-4*v-5*y];

回答 (1 件)

Voss
Voss 2022 年 6 月 19 日
編集済み: Voss 2022 年 6 月 19 日
Are you able to click "Save As..." and then, in the Save dialog window that pops up, change the "Files of Type:" from .mlx to .m?

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by