Open a matlab Function/Class file

3 次查看(过去 30 天)
Avik nayak
Avik nayak 2019-3-14
回答: Avik nayak 2019-3-14
I am trying to create a matlab Function file at run time .
But
fid = fopen('xharness12344.m', 'wt' ); is opening a script file . I need a function file to be opened.
Please let me know how to do it .

回答(1 个)

Avik nayak
Avik nayak 2019-3-14
if it has a function template in it that is function functionname ...end it will automatically convert to function.

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by