Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded MATLAB functions in SIMULINK

Status
Not open for further replies.

epajuelo

Mechanical
Joined
Jul 27, 2010
Messages
3
Location
ES
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!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top