Importing spice library to matlab simscape

when i am trying to convert spice file of mosfet to be used in simscape it generates the following error can anyone suggest me the method in resolving
Error using spiceSubckt/getFunctionCalls
Function dnlim unrecognized.
Error in spiceSubckt/loadSubckt
Error in spiceSubckt
Error in subcircuit2ssc
Error in subcircuit2ssc (line 31)
subcircuit2ssc(netlist,target);
Error in untitled (line 1)
subcircuit2ssc('C3M0016120D.cir','+mylibrary');
i am unable to attach the spice library file

1 Comment

What are spiceSubckt and dnlim? Are those functions you wrote?
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

Sign in to comment.

Answers (0)

Products

Asked:

on 15 Feb 2026

Commented:

on 15 Feb 2026

Community Treasure Hunt

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

Start Hunting!