how to set port using loop indexing instead of defining every node pair explicitly.
1 view (last 30 days)
Aakriti Srivastava on 13 Jul 2022
I have created a 3 port network in matlab. What I want to achieve is to set port of the network using setports function but I dont want to explicitly write the node pair like this:
setports(ckt,[6 0] ,[3 0] ,[2 0])
I have node array like this
So what I want is to set ports using port_node indexing instead of explicitly assign its value. Would you please let me know how to do that?