MATLAB: Exporting double using export

doubleerror messageexport

hi all, i'm trying to export a variable that is double using export function. I keep getting an error message "??? Undefined function or method 'export' for input arguments of type 'double'". My data are real numbers in a single column (when plotted looks like a waveform – brain signal like EEG). I want a txt file as an output. Please let me know if you have any suggestions. thank you

Best Answer

EXPORT is meant to export variables that are of type 'dataset'. For double variables, you can simply use dlmwrite.