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

Issue with function arguments #161

Open
henry2004y opened this issue Nov 12, 2019 · 0 comments
Open

Issue with function arguments #161

henry2004y opened this issue Nov 12, 2019 · 0 comments

Comments

@henry2004y
Copy link

I have encountered an issue using boundary function from Matlab.

using MATLAB
x = rand(30);
y = rand(30);
k = mxcall(:boundary, 2, x, y) # This works fine
k = mxcall(:boundary, 3, x, y, 1.0) # This would return error

The error messages are:

Error using boundary (line 54)
Too many output arguments.
 
Error using save
Variable 'jx_boundary_arg_out_1' not found.
 
ERROR: MATLAB.MEngineError("failed to get variable jx_boundary_arg_out_1 from MATLAB session")
Stacktrace:
 [1] get_mvariable(::MSession, ::Symbol) at /Users/hyzhou/.julia/packages/MATLAB/cVrxc/src/engine.jl:164
 [2] mxcall(::MSession, ::Symbol, ::Int64, ::Array{Float64,1}, ::Vararg{Any,N} where N) at /Users/hyzhou/.julia/packages/MATLAB/cVrxc/src/engine.jl:297
 [3] mxcall(::Symbol, ::Int64, ::Array{Float64,1}, ::Array{Float64,1}, ::Vararg{Any,N} where N) at /Users/hyzhou/.julia/packages/MATLAB/cVrxc/src/engine.jl:317
 [4] top-level scope at none:0

My feeling is that the boundary function accepts different sets of input arguments which confuses Julia. How can we solve 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

1 participant