MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / simple_vars

Function simple_vars

code/matlab_py/demo_py2mat.py:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29# }}}
30import numpy as np
31def simple_vars():
32 I = 42
33 F = np.e
34 S = 'Red'
35 L = [1, 2.2, 'green']
36 D = {'A' : 65, 'B' : 66, 'Z' : 90}
37 T = (225, 'blue')
38 N = F*np.arange(12).reshape(3,4)
39 return I, F, S, L, D, T, N
40def nested_var():
41 N = np.arange(12).reshape(3,4)
42 return [1, 2.2, 'green',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected