Matlab If Statement Array In C