MATLAB: How to calculate the classification accuracy in neural network toolbox

accuracyclassificationDeep Learning Toolboxneural network

net=patternnet(10);
[net,tr]=train(net,inputs,targets);
outputs=net(inputs);
[values,pred_ind]=max(outputs,[],1);
[~,actual_ind]=max(targets,[],1);
accuracy=sum(pred_ind==actual_ind)/size(inputs,2)*100;
Is this correct way to calculate the classification accuracy??

Best Answer

Search ot NEWSGROUP and ANSWERS with
greg patternnet
and
greg patternnet tutorial
Hope this helps.
Thank you for formally accepting my answer
Greg