Hi there,
In Simulink, I'm trying to differentiate a function with respect to a non-time variable. So I created an embedded matlab function and wrote down the following:
function phi = func(B)
syms x;
phi = diff(cosh(B*x)-cos(B*x)...),x);
This function works if called from Matlab console, but with Simulink it complains that "command duality is not supported". What's the way to do it then?
Thanks,
Hasan
In Simulink, I'm trying to differentiate a function with respect to a non-time variable. So I created an embedded matlab function and wrote down the following:
function phi = func(B)
syms x;
phi = diff(cosh(B*x)-cos(B*x)...),x);
This function works if called from Matlab console, but with Simulink it complains that "command duality is not supported". What's the way to do it then?
Thanks,
Hasan