Thread: 3d plot in scilab View Single Post
PF Gold
P: 3,188
 Quote by gsal Don't know scilab, but your second 'atan' has a '2' in the denominator...shouldn't that be 'x'?
No problem. Yes, it should be an x.
 what do the single apostrophes do?
I have absolutely no idea. Probably a necessary part of syntax.

 what do you think you are accomplishing with z=... ? are x and y traversed independently as if they were in 2 nested do-loops...or is it just a one-to-one? In other words, is z also just a vector? or are you getting a matrix?
Hmm, I wanted it to be a function of both x and y and then plot it. My u(x,y)

 try to input one line at a time and find out what you get back after each....don't jump all the way to plotting...baby steps, baby steps!
Ok.
Here is an example they give, from which I've been inspired:
// simple plot using z=f(x,y)
t=[0:0.3:2*%pi]';
z=sin(t)*cos(t');
plot3d(t,t,z)
Edit: It seems that x=[0:0.1:12] is a matrix or so. I thought it would plot x from 0 to 12 with increment of 0.1. Sigh. I really have no idea about Scilab.