Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot translate the code if it has a function call in it #4

Open
knee2710 opened this issue Dec 12, 2016 · 1 comment
Open

Cannot translate the code if it has a function call in it #4

knee2710 opened this issue Dec 12, 2016 · 1 comment

Comments

@knee2710
Copy link

This if main.m, and it calls another file addTwo.m

main.m

a = 20;
b = 30;

c = addTwo(a,b);
disp(c);

addTwo.m
function addition = addTwo(a,b) addition = a+b;

If I am trying to convert addTwo.m it converts perfectly but when I try to convert main.m, it fails
The out put it generated is :

main.py

import numpy as np
import scipy
import matcompat

try:
     import matplotlib.pylab as plt
except ImportError:
     pass

am I doing something wrong? because I have seen that in your Test/ folder the file cheby.m is being called by cheb3plot.m and your code works perfectly fine for this.

@vsandeepsekhar
Copy link

vsandeepsekhar commented Oct 2, 2017

@knee2710

Did you successfully convert the existing *.m files to its *.py equivalent ? I was going to try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants