MATLAB: How to save a MATLAB workspace feature vector or matrix to as excel file in a specific directory MATLABsave excel I want to save a feature matrix to an excel file in a specific directory Best Answer See these functions.writematrix: https://www.mathworks.com/help/releases/R2020a/matlab/ref/writematrix.html writetable: https://www.mathworks.com/help/releases/R2020a/matlab/ref/writetable.html xlswrite: https://www.mathworks.com/help/releases/R2020a/matlab/ref/xlswrite.html You can specify the filename with the complete path to the directory in these functions. Related SolutionsMATLAB: Saving data in .dat files There is no specific format for a .dat file. You can use writematrix(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/writematrix.html or dlmwrite(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/dlmwrite.html in older versions.For example,writematrix(sr, 'filename.dat') % or dlmwrite('filename.dat', sr); MATLAB: How to load spefic sheet of excel workbook in matlab The documentation for xlsread explains how to do either thing you describe. Related QuestionModel free control design
Best Answer