This application discloses an electronic device relating to the field of communication technology. In this application, a first housing and a second housing are movable relative to each other to allow for deployment or retraction. A first radiator is disposed on the first housing and has a first end, a second end, and a
feed point. The
feed point is electrically connected to a first matching circuit, which receives an
excitation signal. A
control unit is electrically connected to an antenna
assembly and is used to adjust the first matching circuit when the relative positions of the first and second housings change, thereby adjusting the
operating frequency band of the antenna
assembly to the target
frequency band. In this application, when the relative positions of the first and second housings change to achieve deployment or retraction, the
control unit adjusts the first matching circuit based on the change in their relative positions to adjust the
operating frequency band of the antenna
assembly to the target
frequency band, thus maintaining the antenna performance of the antenna assembly and reducing the
impact of the first and / or second housings on the first radiator.