How to save function as f.m?

2 vues (au cours des 30 derniers jours)
Dylan Longoria
Dylan Longoria le 18 Juin 2022
Modifié(e) : Voss le 19 Juin 2022
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];

Réponses (1)

Voss
Voss le 19 Juin 2022
Modifié(e) : Voss le 19 Juin 2022
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?

Catégories

En savoir plus sur Audio Processing Algorithm Design dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by