Trying to write a function using @
2 views (last 30 days)
I am trying to write this function in my code but I am getting an invalid MATLAB syntax error. The equation is g(x) = sin(x)/x
Here is what I have:
g = @x sin(x)/x
The g(1) and g(pi) are to be used calling the function to solve.