MATLAB: Write MatLab code to translate the line: x(t)=-t y(t)=-t z(t)=0 0≤t≤1 to any new location in the x,y-plane. Plot together the original line and the new line for a translation of your choice.

paraparametricparametric equation

Eqations

Best Answer

syms x(t) y(t) z(t)
x(t)=-t
y(t)=-t
z(t)=0
ezplot(x,y,[0 1]) %2d
hold on
ezplot3(x,y,z,[0 1]) %3d
Related Question