MATLAB: I am very new to Matlab and was wondering how to graph the function y= (x-1)/(x+1) dividefunctionMATLABplot I have written the code: x= -5:5; y= (x – 1)/(x + 1); plot(x,y) It does not come up with any errors but when I select Run my graph does not show Best Answer Just include a . before division x= -5:5y= (x - 1)./(x + 1)plot(x,y) Related SolutionsMATLAB: How to plot this function Try this instead:x=0:10:200;y=0:0.05:1;[X,Y]=meshgrid(x,y);Z=(-0.5)*X.*(X+1).*(X-1).*((Y.^X./X)-(2*(Y.^(X-1))./(X-1))+(Y.^(X-2))./(X-2)-2./(X.*(X-1).*(X-2)));surf(X,Y,Z)rotate3d on MATLAB: How can i plot y = 1/x*(x-1) syms xfplot(1/(x*(x-1)))orfplot(@(x)1/(x*(x-1))) Related QuestionCreate An Array That Contains All the Values of F(x)? Help!X=[x1(:,:) x1(:,:)]Plotting graph in matlab
Best Answer