Embedded MATLAB functions in SIMULINK
Embedded MATLAB functions in SIMULINK
(OP)
Hi everyone!!
I want to execute the following .m file from SIMULINK to create a block able to do a triple interpolation:
**************
function D=interpolateD(A,B,C)
%
%
load '-MAT' Avector % Loads Avector from a .MAT file
load '-MAT' Bvector
load '-MAT' Cvector
load '-MAT' Dvector
%
D=interp3(Avector,Bvector,Cvector,Dvector,A,B,C);
***************
I tred to used a embedded MATLAB function coverting "load" and "interp3" into extrinsic functions but it does not work. I think that the problem is that I need to load Avector,...,Dvector in the Worspace, but I can not. Can anyone help me??
I attached the MATLAB functions in case anyone could help me.
Thanks in advance!!!!
I want to execute the following .m file from SIMULINK to create a block able to do a triple interpolation:
**************
function D=interpolateD(A,B,C)
%
%
load '-MAT' Avector % Loads Avector from a .MAT file
load '-MAT' Bvector
load '-MAT' Cvector
load '-MAT' Dvector
%
D=interp3(Avector,Bvector,Cvector,Dvector,A,B,C);
***************
I tred to used a embedded MATLAB function coverting "load" and "interp3" into extrinsic functions but it does not work. I think that the problem is that I need to load Avector,...,Dvector in the Worspace, but I can not. Can anyone help me??
I attached the MATLAB functions in case anyone could help me.
Thanks in advance!!!!