- #1
- 4,699
- 369
Hi I want to plot the function ##y=\sin(x)/\log(x)## in MATLAB but I get the next error message:
Here is the script that I used:
How to fix this that I'll get the plot on the real line?
Thanks!
Matlab:
Warning: Imaginary parts of complex X and/or Y arguments ignored
Here is the script that I used:
Matlab:
x = -2*pi:pi/100:2*pi;
y = sin(x)/log(x);
plot(x,y)
Thanks!