Hello 상욱 이,
Inoder to make third port open or short from the available 's3p' file. follow the steps given below:
- Create an n-port circuit element by passing the file as argument.
- Then, create a new circuit object from the obtained nport.
- Then cascade resistor of zero ohms with port three.
I'm attaching the sample code for your reference:
nobj = nport(S);
ckt = circuit('new');
add(ckt, [1 2 3],nobj)
add(ckt,[3 0],resistor(0))
setports(ckt,[1 0],[2 0],[3 0])
frequency = linspace(1e9,2e9,100);
sparameters(ckt,frequency)
Regards
Naren