Function matlab cannot be create

1 visualización (últimos 30 días)
farah
farah el 27 de Abr. de 2016
Editada: Walter Roberson el 28 de Abr. de 2016
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

Respuestas (1)

Star Strider
Star Strider el 27 de Abr. de 2016
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\...

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by