Files
clearpilot/third_party/acados/acados_template/gnsf/matlab to python.md
Comma Device 1ff14d346f wip
2024-05-14 08:21:27 +00:00

43 lines
313 B
Markdown
Executable File

# matlab to python
% -> #
; ->
from casadi import *
->
from casadi import *
print\('(.*)'\)
print('$1')
print\(\['(.*)'\]\)
print(f'$1')
keyboard
import pdb; pdb.set_trace()
range((([^))]*))
range($1)
\s*end
->
nothing
if (.*)
if $1:
else
else:
num2str
str
for ([a-z_]*) =
for $1 in
length\(
len(