Code covered by the BSD License  

Highlights from
Matlab <-> PSpice Interface

image thumbnail
from Matlab <-> PSpice Interface by Frank Sommerhage
How to call PSpice from Matlab and import the results

setPCM(Sim)
function netlist = setPCM(Sim)
% write *.pwl-files for PSpice
writepwl('\MPS\TEMP\V_stim.pwl', Sim.Time.*1e3,     Sim.Vstim.*1e3, 'ms', 'mV');
writepwl('\MPS\TEMP\I_free.pwl', Sim.Time.*1e3,     Sim.Ifree.*1e9, 'ms', 'nA');
writepwl('\MPS\TEMP\I_atta.pwl', Sim.Time.*1e3, Sim.Iattached.*1e9, 'ms', 'nA');

% create a rudimentary netlist for PSpice
netlist = makeNetList(Sim);

Contact us at files@mathworks.com