The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 function of 3 variable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

reggepole

USA
Posts

Posted - 01/28/2004 :  9:00:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to plot z=f(x,y)? Do I have to calculate matrix previously even I know the explicit form of the function?

greg

USA
1379 Posts

Posted - 02/09/2004 :  10:15:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000