Error in matlab analysis

uzair ayub on 21 May 2021
Latest activity Reply by Christopher Stapels on 27 May 2021

'nanmean' requires one of the following: Financial Toolbox Statistics and Machine Learning Toolbox

Error in Custom (no starter code) 1 (line 15) avghumidity= nanmean(humidity);

how to remove this error?

Christopher Stapels
Christopher Stapels on 27 May 2021

You can use M = mean(___,nanflag), which is available in base MATLAB. You wont need to purchase any licenses to use that.

Christopher Stapels
Christopher Stapels on 26 May 2021

You will need to purchase Financial toolbox (with MATLAB) or rewrite your code to not include this function. I would suggest you preprocess your data to remove nan values and then use the mean function available in base MATLAB. You wont need a license for that.

Tags

No tags entered yet.