MATLAB: I’m getiing this error while running the below code and the error is “Function ‘subsindex’ is not defined for values of class ‘cell'”. Could anyone tell me the way to minimize it

MATLABneural network

options = trainingOptions('sgdm',...
'LearnRateSchedule','piecewise',...
'LearnRateDropFactor',0.2,...
'LearnRateDropPeriod',5,...
'MaxEpochs',4,...
'MiniBatchSize',8,...
'ValidationData',{imgdtsTrain,imgdtsValidation},...
'ValidationFrequency',10,...
'Verbose',false,...
'Plots','training-progress')

Best Answer

You've defined a variable named trainingOptions. That line of code is being interpreted as an attempt to index into that variable rather than an attempt to call the trainingOptions function. Rename or remove the variable then run that code again.
Related Question