Skip to content
Discussion options

You must be logged in to vote

Hello, maybe I can help. You essentially need to create a loop to activate the ports sequentially. Each port element has an 'excite' parameter, which is essentially a boolean to toggle the excitation on and off:

for active_port_n = 1:N_ports
    for port_n = 1:N_ports
        % This loop creates your ports, where just one port is active
        [CSX, port{port_n}] = AddLumpedPort(CSX, <<prio>>, port_n, <<R>>, <<start>>, <<stop>>, <<dir>>, port_n==active_port_n)
    end
    % For each iteration of the active_port_n loop you run the simulation
end

This method is utilized within the set of these two tutorial files: matlab/Tutorials/Patch_Antenna_Phased_Array.m, matlab/Tutorials/Patch_Antenna…

Replies: 4 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by LeoGalloGomes
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
16 replies
@VolkerMuehlhaus
Comment options

@VolkerMuehlhaus
Comment options

@VolkerMuehlhaus
Comment options

@LeoGalloGomes
Comment options

@VolkerMuehlhaus
Comment options

Comment options

You must be logged in to vote
1 reply
@VolkerMuehlhaus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants