Assuming num_correct_predictions
and total_predictions
are already calculated, you can compute the accuracy in MATLAB as follows:
main.m56 chars2 lines
Make sure that num_correct_predictions
and total_predictions
are of numeric data types (e.g. double
, int
, etc.) and not string types.
gistlibby LogSnag