MATLAB: How to save a matrix that contains NaN, strings and numbers matricsave Dear all, I want to save a matrix 'out' that contains NaN, strings and numbers I tried save out but did not work. Any ideas? Thanks in advance Best Answer out={10 20 nan 'str' [1 2] [1 0;2 4]}You can save your data in a mat file:save filename out Related SolutionsMATLAB: How to save MAtlab output in a file that you can reopen later Save your workspace as a *.mat file is easiest. You can use File->Save Workspace As from the menu or using the 'save' command.doc saveThen to retrieve the results, use File->Open or the 'load' commanddoc load MATLAB: Ode45 returns NaN, Why rho = 1.226*exp(-1.387e-4*(0.3256-6378000)) ~ 1.226*exp(885) !!!Best wishesTorsten. Related QuestionSaving NaN rows and columns into a array after you find themStringsGet Path of Saved File: Indexing with NaN, and python zip function in matlabAppend rows to same .mat file (without replacing)
Best Answer