The present invention relates to a neuromodulation/neurostimulation system for supporting and/or controlling a function of t he respiratory system of a patient, said function comprising a plurality of phases each involving one or more muscles. The system comprises: - at least one control unit, configured and/or adapted to provide stimulation data for each phase of said function of the respiratory system, and - at least one stimulation unit, operatively connected to the at least one control unit, wherein the at least one stimulation unit is configured and/or adapted to deliver electrical stimulation at least partially targeted to the dorsal roots of the thoracic region of the spinal cord innervating the trunk muscles of said patient, wherein said stimulation data include at least one stimulation parameter defined for each phase of said function of the respiratory system, and wherein, during each phase of said function of the respiratory system, the at least one control unit is configured and/or adapted to control the at least one stimulation unit to deliver electrical stimulation according to the at least one stimulation parameter defined for the ongoing phase of said function.