To prepare a sample for NMR analysis, firstly, dissolve the sample in a suitable deuterated solvent, ensuring sample concentration is appropriate for sensitivity. Transfer this solution into an NMR tube, and then insert the tube into the NMR spectrometer for analysis.