If so, I'm trying to learn it and I'm having a bit of trouble. Tell me whether anything is wrong with the following function:

function h=sindeg(x)

h=sin(pi/180*x);

h=sin(pi/180*x);

sindeg(30)

I'm getting the following error everytime I try to execute:

??? Undefined function or variable 'sindeg'.