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
 Can We Animate??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

psafier

USA
1 Posts

Posted - 08/07/2003 :  11:50:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

Does anyone know how to animate a set of data in the form C=C(X,t)?
I would like to animate a plot of C vs. X for various values of time,t. Thanks

Paul

Edited by - psafier on 08/07/2003 1:12:22 PM

cpyang

USA
1406 Posts

Posted - 08/07/2003 :  1:43:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you can. Here is an example on how to do it, assuming that you can write a little bit of LabTalk.
We will use column formula to specify the function, so the LabTalk code below can be reuse.

1. Create worksheet and put your X values into col(1), for example fill it with 1-100
2. Enter a column formualr into col(2), for example
sin(col(1) * a)
so we will use variable a as our parameter.
3. Plot col(2) into a line plot
4. run the following labTalk script, when the graph is the active window.

set %C -an 1;loop(i,1,100) {a=i/10;plot -v;plot -L;run -wu data1;plot -L;sec -p 0.1};

Here we assumes the following, so you can easily change.
1. The data is in a worksheet called Data1.
2. The parameter is labtalk variable A

Hope this helps.

CP




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