| Liem Huynh 2005-04-21, 4:02 am |
| Dear all,
Have a good day first. :-)
I am currently stuck and can not resolve them for a couple of days.
Thus, s ing 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?
|