Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Put m-file to simulink, why it don't work?

1 visualización (últimos 30 días)
Kristian Vepsäläinen
Kristian Vepsäläinen el 5 de Dic. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have m-file where is next code:
if true
function y=fun(eka,toka,kolmas,neljas,viides,ti)
%#codegen
coder.extrinsic('spline');
coder.extrinsic('apu');
x=[eka toka kolmas neljas viides];
xx=[ti:ti+4];
apu = spline(xx,x,xx);
y=apu;
end
Why this don't work? It gives error message: function output 'y' cannot be an mxArray in this context. Consider preinitializing the output variable with a known type.
What I do wrong?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by