File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed
Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 1212 "collapsed" : false ,
1313 "input" : [
1414 " import os\n " ,
15+ " import numpy as np\n " ,
1516 " import pymatbridge as pymat\n " ,
1617 " reload(pymat)"
1718 ],
179180 ],
180181 "prompt_number" : 7
181182 },
183+ {
184+ "cell_type" : " code" ,
185+ "collapsed" : false ,
186+ "input" : [
187+ " %%matlab -o cmpl\n " ,
188+ " a = linspace(0.01,6*pi,100);\n " ,
189+ " cmpl = exp(1i * a);"
190+ ],
191+ "language" : " python" ,
192+ "metadata" : {},
193+ "outputs" : [],
194+ "prompt_number" : 8
195+ },
196+ {
197+ "cell_type" : " code" ,
198+ "collapsed" : false ,
199+ "input" : [
200+ " cmpl[2] # complex data works also"
201+ ],
202+ "language" : " python" ,
203+ "metadata" : {},
204+ "outputs" : [
205+ {
206+ "metadata" : {},
207+ "output_type" : " pyout" ,
208+ "prompt_number" : 9 ,
209+ "text" : [
210+ " array([ 0.92468189+0.3807406j])"
211+ ]
212+ }
213+ ],
214+ "prompt_number" : 9
215+ },
182216 {
183217 "cell_type" : " code" ,
184218 "collapsed" : false ,
185219 "input" : [],
186220 "language" : " python" ,
187221 "metadata" : {},
188- "outputs" : []
222+ "outputs" : [],
223+ "prompt_number" : 9
189224 }
190225 ],
191226 "metadata" : {}
You can’t perform that action at this time.
0 commit comments