MATLAB: Error while Debugging the code as : InvalidPropertyThere is no SelectionChangeFcn property on the TabGroup class.

selectionchangefcn

I have a Matlab project in Matlab R2017a . While debugging the code, i get the following error as :
There is no SelectionChangeFcn property on the TabGroup class.
The error is in the next line: cv.TabGroup = uitabgroup; set(cv.TabGroup,'SelectionChangeFcn',@(s,e)cv.changeTabs(s,e));

Best Answer

A look at the documentation together with the error message should make this obvious though I have also had a blind spot at times for a missing letter
SelectedChangedFcn
is the property name. Note the 'd' on the end.