T O P I C R E V I E W |
reggepole |
Posted - 01/28/2004 : 9:00:27 PM How to plot z=f(x,y)? Do I have to calculate matrix previously even I know the explicit form of the function? |
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 02/09/2004 : 10:15:58 AM You do need a matrix and you should setup the X and Y range you need and an appropriate number or rows and columns. You can plot this empty matrix with any 3D/Contour plot type, then make the matrix active and do the following: Open the script window and enter a command like the following: matrix -v -4*X^2+2*X*Y-6*Y^2<Enter> You will need to rescale the graph to show the full plot.
Here is a script that lets you play will this (assumes matrix is Matrix1 and graph is Graph1):
// START SCRIPT %B = "-4*X^2+2*X*Y-6*Y^2"; // SUBSEQUENTLY, REPEAT FROM HERE (since %B is remembered) win -a Matrix1; // Change name if needed getstring (Function Z(X,Y)) (%B) (Function Editor); matrix -v %B; win -a Graph1; // Change name if needed layer -a; // END SCRIPT
|
|
|