This is the main function
it is called from function: check_equal_case.m
final_seq = ones(1,y)
compilation is correct in matlab script.
when try to generate c ++ code, matlab throws error : Output argument 'check_equal' is not assigned on some execution paths