I have an element with an impedance that has a complicated relationship with frequency. I have defined the mathematical relation for the impedance as a MATLAB function and used MATLAB function block to simulate it in Simulink. The problem is that I could not find any variable impedance element which can be controlled by a signal in Simulink. The only element which could be used is variable resistance that neglects the imaginary part of the impedance. On the other hand, impedance block is only useful for defining linear systems with zeros and poles and polynomial type relations for impedance. The impedance relation with angular frequency is attached.
Thank you in advance.