[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-babel pass data between blocks
From: |
Marvin Doyley |
Subject: |
[O] org-babel pass data between blocks |
Date: |
Mon, 28 Apr 2014 08:41:39 -0400 |
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
- [O] org-babel pass data between blocks,
Marvin Doyley <=