In Matplotlib, the `plt.xlabel()` function is used to set the label for the x-axis. To give the title "No. of patients" to the X-axis, the correct command is `plt.xlabel("No. of patients")`. This ensures that the x-axis is labeled correctly in the plot.