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.

카테고리

도움말 센터File Exchange에서 Adding custom doc에 대해 자세히 알아보기

제품

릴리스

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