MATLAB: Can not plot, please help plotplotting x = 0:1:10y = (15*x)/(4*x.^2-3*x+4)plot(x,y) why can't i plot this? please help me. Best Answer It is plotting, it's just only plotting a single point. The matrix division of a 1x11 vector by a 1x11 vector is a scalar.ones(1,10)/ones(1,10)You probably meant for element-by-element divisionones(1,10)./ones(1,10)And thus your defintion of y:y = (15*x)./(4*x.^2-3*x+4)look atdoc vectorizeto avoid these issues in the future. Related SolutionsMATLAB: Help me about plot and linspace in matlab It should bex = linspace(1,10,100);y = (2./x).^3;plot(x,y,'linewidth',4,'color','r') MATLAB: How to plot a graph of this equation x=-10:0.1:10 Y=1./(x.^2)+8plot(x,Y) Related QuestionPlot, legend, settings, appearanceMatlab plots only one pointCan’t plot functionCould anyone help me to solve the issue
Best Answer