For Programmers: Free Programming Magazines  


Home > Archive > Matlab > April 2005 > PROBLEM WITH EMBEDDED MATLAB FUNCTION IN









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PROBLEM WITH EMBEDDED MATLAB FUNCTION IN
Liem Huynh

2005-04-26, 4:06 am

Dear all,

Have a good day first. :-)

I am currently stuck and can not resolve them for a couple of days.
Thus, sing help from you.

I am building a Matlab Embedded Function Block in Simulink and has
the following problems:

"Missing imaginary constant (e.g. 1'i') or undefined function or
variable 'i'" --- which seems due to the limitation of Simulink to
Complex numbers or something.

"Embedded MATLAB Interface Error: Port width mismatch. Input port
"tol"(#194) expects a scalar. The signal is a one dimensional vector
with 1 elements."

--- with this, I really do not understand. Since the variables in my
matlab function scalar and I expect the value from Constant Block is
also a scalar..but it 's not........

I also have problem of using "norm" command in my function..it seems
EMF doesn't support that. Can I go around with it.

I really appreciate your time and your ideas...

Thank you so much

Last question: I don't know there should be a question like
this...but which options seem better for implemntation??? : Embedded
function or LEvel 1 M-Sfunction or Level2 S-function?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com