Function matlab cannot be create

Hi,can someone help me? the code cannot be create in function matlab. access denied. how is it?
function fault = fcn(time)
%#codegen
fault = 0;
if(time >=0.02)
fault=1;
end

답변 (1개)

Star Strider
Star Strider 2016년 4월 27일

0 개 추천

You would be saving that as the file ‘fcn.m’. You have to be sure you are saving it to a directory you have permission to write it to. The easiest way is to save it to your MATLAB user path, that on Windows machines is: C:\Users\UserName\Documents\MATLAB\...

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2016년 4월 27일

편집:

2016년 4월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by