Hi @neha gautam
MATLAB includes various tools and functions for assessing the performance of neural networks, such as calculating accuracy. The Deep Learning Toolbox (previously known as the Neural Network Toolbox) provides built-in functions specifically designed for performance evaluation.
A useful tool is the “confusion” function, which calculates the confusion matrix and accuracy for classification tasks.
To learn more about “confusion” function kindly refer following MathWorks Documentation.
I hope this will be helpful.