I defined the following function in matlab:
function draw_snake(snake,food)
but matlab shows me an error message saying:
Error: Function definitions are not permitted in this context.
I am new to matlab and just installed it.
I am using MATLAB version 8.1.0.604.