How can I build a custom block in simscape representing nonlinear resistor having equation "v=(20/pi)​*atan(4000​*i)"?)

10 views (last 30 days)
I get error "The units for both operands in relational operations must be commensurate,or one of the operands must be 0." when i try to write "v=(20/pi)*atan(4000*i)" in equation field.

Answers (1)

Sabin
Sabin on 23 Dec 2025 at 19:50
As the error says, the units of both operands must be commensurate. Assuming v is in Volts and i is in Amps this condition is not met.

Categories

Find more on Foundation and Custom Domains in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!