Hello, each time I am trying to plot a graph on matlab online I am having a blank graph as per attachment for y=(exp(x)/sin(x))+0.3 with a range of -10 <x<10
Will,tan(x) has singularities (function goes to infinity) atpi/2 +/- n*pi. So when you plot over the range from-2*pi to+2*pi the data points just before and right after such a singularity will also be connected (by the default line), unless you tell MATLAB to ploint data points only (markers, essentially). For example,
plot(x,y,'*')
Plus, you would also want to put a limit on your y-axis, something like
Best Answer