call with matlabfunction(simulink) an other mfile
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
Hi, i have a simulink model, which computes a value, then i give this value to a matlab funktion, then fron this matlab funktion i wanna call an other mfile funktion and give this mfile function this value.
How can i call an other funktion and give a value???? THX
Respuestas (1)
Azzi Abdelmalek
el 3 de Jun. de 2013
0 votos
9 comentarios
sia
el 3 de Jun. de 2013
Azzi Abdelmalek
el 3 de Jun. de 2013
Editada: Azzi Abdelmalek
el 3 de Jun. de 2013
function y = load_handles(i,d,c,alpha)
%#codegen
y = test_environment(i,d,c,alpha);
sia
el 3 de Jun. de 2013
Azzi Abdelmalek
el 3 de Jun. de 2013
And what are i,d,c,alpha ? constants or signals?
Azzi Abdelmalek
el 3 de Jun. de 2013
sia
el 3 de Jun. de 2013
Azzi Abdelmalek
el 3 de Jun. de 2013
Editada: Azzi Abdelmalek
el 3 de Jun. de 2013
You did not answer my question, what are i,d ,c and alpha constants or signals? how are they used in your simulink model?
sia
el 3 de Jun. de 2013
Azzi Abdelmalek
el 3 de Jun. de 2013
You do not need to put the m-file in your Matlab fcn block, you have just to call the function in the block Matlab fcn. but you need to use i,d,c,alpha as constants or signals
function y = load_handles(i,d,c,alpha)
%#codegen
y = test_environment(i,d,c,alpha)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!