Plot the curve described by the following equations

Good afternoon! I need to plot a curve described by these equations: x = (1-t^2)/(1+t^2) y = 2t/(1+t^2) -1000<=t<= 1000

 Accepted Answer

t = linspace(-1000,1000,500);
x = (1-t.^2)./(1+t.^2);
y = 2.*t./(1+t.^2);
subplot(2,1,1)
plot(t,x,'-r')
subplot(2,1,2)
plot(t,y,'-r')

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2018a

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!