[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Plotiing a 3d function
From: |
Rafael Almeida |
Subject: |
Plotiing a 3d function |
Date: |
Sun, 2 Jul 2006 01:21:33 -0300 |
Hello,
I need to plot a function, more specifically this one
function y = rosenbrock(x)
n = 2;
sum = 0;
for j = 1:n-1;
sum = sum+100*(x(j)^2-x(j+1))^2+(x(j)-1)^2;
endfor
y = sum;
endfunction
But I can't figure out how can I plot it. It's suposed to be a 3d
graph. The fplot function seems to do only 2d. Or at least I couldn't
figure out how to do it. I need to plot it using level curves also.
Could anyone help me out on this one?
thanks.
- Plotiing a 3d function,
Rafael Almeida <=