Importing spice library to matlab simscape
Show older comments
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
Image Analyst
on 15 Feb 2026
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:
Answers (0)
Categories
Find more on SPICE files in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!