MATLAB: Passing values from an excel file to another using matlab

absolute valuesexcelvalues

I have a matrix in excel with negative values. I want to create a new matrix in an excel file with the absolute values of the previews one. Can anyone share with me the matlab code in order to accomplish this ? Any help could be useful.Thanks in advance.

Best Answer

writetable(varfun(@abs, readtable('inputfile.xlsx')), 'outputfile.xlsx')
may do what you want.
Related Question