MATLAB: I am getting eval flag error when i execute matlab -eval “perf = ten_fold_v​alidation(​’sub’, -1)”

Deep Learning Toolboxnnet

my error
matlab: 1: eval: Syntax error: "(" unexpected
the first line of my code is
function err = ten_fold_validation(feature_type, num_data_points)

Best Answer

"-eval" is not a valid command line flag for MATLAB. The closest corresponding command line flag is '-r"