A transmitter (102, 1047) including at least one radio-frequency, RF, chain, the RF chain comprising: an array of transmitting elements, each transmitting element including a band-pass filter (116A, 116B, 116N, 117A, 117B, 117N, 118A, 118B, 118N) and an antenna connected in series for transmitting an analog signal using a beamforming with an angle of departure, AOD, defined by phase shifts of analog signals received by different transmitting elements within the array of transmitting elements; a phase shifter (105A, 105B, 105N) configured to shift a phase of an input signal (11, 12, 13); a variable gain amplifier, VGA, (107A, 107B, 107N) configured to change an amplitude of the input signal (11, 12, 13), wherein the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) are connected in series; a switcher configured to connect the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) to each transmitting element in the array of transmitting elements, wherein at most one transmitting element is connected to the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) at each given point of time within a time period, such that the switcher is a single-pole-M-throw, SPMT, analog switch (114A, 114B, 114N), wherein M is a size of the array of transmitting elements; and a controller (103, 103A, 103B, 103N) configured to control the phase shifter (105A, 105B, 105N), the VGA (107A, 107B, 107N) and the switcher, such that, at the given point of time, the transmitting element receives a sample of the input signal (11, 12, 13) having a phase and an amplitude determined based on the AOD, and a location of the transmitting element within the array of transmitting elements; wherein the sample is comprised by a discrete sequence of samples which are sampled at a sampling rate defined according to the sampling theorem, and which are separated by the time period which is defined according to the sampling rate. an array of transmitting elements, each transmitting element including a band-pass filter (116A, 116B, 116N, 117A, 117B, 117N, 118A, 118B, 118N) and an antenna connected in series for transmitting an analog signal using a beamforming with an angle of departure, AOD, defined by phase shifts of analog signals received by different transmitting elements within the array of transmitting elements; a phase shifter (105A, 105B, 105N) configured to shift a phase of an input signal (11, 12, 13); a variable gain amplifier, VGA, (107A, 107B, 107N) configured to change an amplitude of the input signal (11, 12, 13), wherein the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) are connected in series; a switcher configured to connect the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) to each transmitting element in the array of transmitting elements, wherein at most one transmitting element is connected to the phase shifter (105A, 105B, 105N) and the VGA (107A, 107B, 107N) at each given point of time within a time period, such that the switcher is a single-pole-M-throw, SPMT, analog switch (114A, 114B, 114N), wherein M is a size of the array of transmitting elements; and a controller (103, 103A, 103B, 103N) configured to control the phase shifter (105A, 105B, 105N), the VGA (107A, 107B, 107N) and the switcher, such that, at the given point of time, the transmitting element receives a sample of the input signal (11, 12, 13) having a phase and an amplitude determined based on the AOD, and a location of the transmitting element within the array of transmitting elements; wherein the sample is comprised by a discrete sequence of samples which are sampled at a sampling rate defined according to the sampling theorem, and which are separated by the time period which is defined according to the sampling rate.