How can I reset/change ciruit ports?

2 ビュー (過去 30 日間)
Haba
Haba 2017 年 7 月 26 日
回答済み: Abhi Sundararaman 2017 年 7 月 28 日
I have already set circuit ports and I wanted change ports.
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]);
I want to change ports for example to [1 2], [2 0], [3 0], [4 0]. How can I do that? I can clear circuit object and create a new one but can I just change ports?
Thanks, Haba

採用された回答

Abhi Sundararaman
Abhi Sundararaman 2017 年 7 月 28 日
Unfortunately, modifying/resetting the ports on a defined circuit object is currently not possible. Once a circuit object is created, and setports/setterminals is used, the circuit is defined and cannot be changed. Indeed, the only way to go about it would be to just clear the circuit object and make a new one with the desired parameters.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRF Network Construction についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by