Q:

How do you plot this particular function in matlab?

I want to draw these two function in Matlab  
g(x) = sin(x)/(1+x^2) and
f(x) = (x^2)/(2-x)  
However I am struggling with it, here is my code  
x=linspace(-5,5); 
y1= sin(x)/(1+x^2);
y2= x^2/(2-x);
plot(x,y1,x,y2)

Every time I try to run an empty figure is displayed. 

A:

When you run your code, you'll realize that you are getting the following error:

Error using ^
  Inputs must be a scalar and a square matrix.
  To compute elementwise POWER, use POWER (.^) instead.

As the message very clearly states, you need to use power (.^) to perform the element-wise operation rather than mpower (^). Additionally, you'll want to use rdivide (./) rather than mrdivide (/) to perform element-wise division.
y1 = sin(x) ./ (1+x.^2);
y2 = x.^2 ./ (2-x);

If you want each plot to be on it's own scale, you can use yyaxis
yyaxis left
plot(x, y1)
yyaxis right
plot(x, y2);

