emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babel pass data between blocks
@ 2014-04-28 12:41 Marvin Doyley
  2014-04-28 13:07 ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Marvin Doyley @ 2014-04-28 12:41 UTC (permalink / raw)
  To: emacs-orgmode


Dear All,

Is there way to pass data between blocks in org-babel. For example lets say have two blocks


#+begin_src python
from pylab import *
# Simple carrier
t=linspace(0,1,100);
fc=100;
Ac =1;
C=Ac*cos(2*pi*t);

#+end_src


What I would like to do is to pass both C and t to another python block, but it is not clear how to do this.

#+begin_src python 
from pylab import *

fm=1;
Am=1
m=Am*cos(2*pi*t); # message signal

z=m*C;   #double side-band modulated signal

#+end_src



Thanks,
M

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-28 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28 12:41 org-babel pass data between blocks Marvin Doyley
2014-04-28 13:07 ` Alan Schmitt
2014-04-28 14:52   ` Marvin Doyley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).