Convert a matrix (with spectral points in the column dimension and dynamics in the row dimensions) into a mrs_data object.
mat2mrs_data(
mat,
mrs_data = NULL,
fs = NULL,
ft = NULL,
ref = NULL,
nuc = NULL,
fd = FALSE
)
mrs_data object.
data matrix.
example data to copy acquisition parameters from.
sampling frequency in Hz.
transmitter frequency in Hz.
reference value for ppm scale.
resonant nucleus.
flag to indicate if the matrix is in the frequency domain (logical).