MATLAB: 2d function in 3d

2dfunction

i need to show this function y = x^2 in 3d in matlab

Best Answer

Try this:
x = [1;1] * linspace(-4, 4, 25) ;
y = x.^2;
figure(1)
surf(x, y, [zeros(size(x(1,:))); 5*ones(size(x(1,:)))], 'EdgeColor','b')
grid on
view(-75, 45)
EDIT Added plot.
Related Question