如何使用RF工具箱在MATLAB中更改电路端口?

如何使用RF工具箱在MATLAB中更改电路端口?,matlab,Matlab,我已经设置了电路端口,我想更改端口。我使用射频工具箱 portn = nport(file); port4 = circuit('port4'); add(port4, 1:4, portn); add(port4, [1 0], resistor(10)); add(port4, [2 0], inductor(3)); setports(port4, [1 0], [2 0], [3 0], [4 0]); 例如,我想将端口更改为[1 2]、[2 0]、[3 0]、[4 0]。 我不能使

我已经设置了电路端口,我想更改端口。我使用射频工具箱

portn = nport(file);
port4 = circuit('port4');
add(port4, 1:4, portn);
add(port4, [1 0], resistor(10)); 
add(port4, [2 0], inductor(3));
setports(port4, [1 0], [2 0], [3 0], [4 0]);
例如,我想将端口更改为[1 2]、[2 0]、[3 0]、[4 0]。 我不能使用
设置端口(端口4、[12]、[20]、[30]、[40]),因为此电路的端子已设置。

我该怎么做?我可以清除回路对象并创建一个新的回路对象,但我可以只更改端口吗?

您正在使用某个库吗?这似乎不是内置于matlab功能中。电路对象、nport和设置端口位于RF工具箱中