from
Matlab <-> PSpice Interface
by Frank Sommerhage
How to call PSpice from Matlab and import the results
|
| makeNetList(p)
|
function line = makeNetList(p)
% Here is some code with circuit elements of the Point-Contact Model
% This is very specific for the demo-case (you need to use you suff here)
% creating netlist content - read a PSpice manual for more info
% In brief, you can define circuit elements between nodes
% name node1 node2 value / file with values
line{01} = ['C_C_fast PATCH 0 ' num2str(p.Cfast)];
line{02} = ['R_R_series PATCH CELL ' num2str(p.Rseries)];
line{03} = ['V_V_stm PATCH 0 PWL FILE "\MPS\TEMP\V_stim.pwl"'];
line{04} = ['R_R_free CELL 0 ' num2str(p.Rfree)];
line{05} = ['C_C_free CELL 0 ' num2str(p.Cfree)];
line{06} = ['I_I_free CELL 0 PWL FILE "\MPS\TEMP\I_free.pwl"'];
line{07} = ['R_R_attached CELL FET ' num2str(p.Rattached)];
line{08} = ['C_C_attached CELL FET ' num2str(p.Cattached)];
line{09} = ['I_I_attached CELL FET PWL FILE "\MPS\TEMP\I_atta.pwl"'];
line{10} = ['R_R_Junction FET 0 ' num2str(p.Rjunction)];
line{11} = ['R_R_lowpass OUT FET ' num2str(p.Rlowpass)];
line{12} = ['C_C_lowpass 0 OUT ' num2str(p.Clowpass)];
|
|
Contact us at files@mathworks.com