Open a matlab Function/Class file

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 日

0 投票

if it has a function template in it that is function functionname ...end it will automatically convert to function.

カテゴリ

製品

リリース

R2018b

質問済み:

2019 年 3 月 14 日

回答済み:

2019 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by