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
 Before Formula Script in 2D function plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Jaycher

Japan
1 Posts

Posted - 02/18/2019 :  11:02:12 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi! Would I get some help here?
I'm an undergraduate student in physics.
I want to plot some function but didn't well because there were problems to understand "Before Formula Script".



This is a function and variables that I want to plot.
However, 'y' is in "Before formula script" and variables,
function plot didn't work well...

Would I get some help?

Castiel

343 Posts

Posted - 02/19/2019 :  02:50:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Jaycher

Hi! Would I get some help here?
I'm an undergraduate student in physics.
I want to plot some function but didn't well because there were problems to understand "Before Formula Script".



This is a function and variables that I want to plot.
However, 'y' is in "Before formula script" and variables,
function plot didn't work well...

Would I get some help?




That's an implicit function cannot be used to created graphs by "Function Plot". "Before Formula Script" is not to blame.

To created (smooth) 2D implicit function plot, you should apply the contour routine. However, according to your description, the function cannot be plotted correctly. Just tried the fimplicit in MATLAB.


                                          &&&&&&&&&
                                        &&&
                                       &&
                                      &  _____ ___________
                                     II__|[] | |   I I   |
                                    |        |_|_  I I  _|
                                   < OO----OOO   OO---OO
**********************************************************
Go to Top of Page

JacquelineHe

287 Posts

Posted - 02/19/2019 :  02:51:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

When you use 2D function plot to create a graph, you can use "Before Formula Script" to defind some variables and execute scripts before the expression in the formula.
But in the "Before Formula Script", the variable "Y" in is not defined, Origin can not identify what is "Y" and can not know its value.

Or this 2D function is implicit funtion?


Thanks
Jacqueline
OriginLab
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