Parametric Function does not show up in plot?

5 views (last 30 days)
Devon
Devon on 21 Oct 2014
Commented: Star Strider on 22 Oct 2014
I am attempting to plot the Folium of Descartes in Matlab as a set of parametric equations, but when I use the plot(x,y) command no plot shows up--just an empty plot with no lines or points.
These are my commands I am using--hopefully someone can point out any mistakes I may have made.
clc
syms t
t=linspace(-30, 40);
x=3*t/(1+t.^3);
y=3*(t.^2)/(1+t.^3);
plot(x,y)

Answers (1)

Star Strider
Star Strider on 21 Oct 2014
You don’t need syms but you do need to vectorise the division (replace (/) with (./)):
t=linspace(-30, 40);
x=3*t./(1+t.^3);
y=3*(t.^2)./(1+t.^3);
plot(x,y)
  4 Comments

Sign in to comment.

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!