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

Multiple outputs are a struct, maybe should be a cell-array? #48

Closed
standarddeviant opened this issue Jul 22, 2017 · 1 comment
Closed

Comments

@standarddeviant
Copy link
Contributor

If you put the following in nargoutTest.jl

# nargoutTest.jl
function nargoutTest(a,b)
  @show a, b
  return "outp1", "outpTWO"
end

Then run the following in matlab

>> jl.include('nargoutTest.jl')
>> jlout = jl.call('nargoutTest',6,7)
(a, b) = (6.0, 7.0)

jlout = 

  struct with fields:

    outp1: 'outpTWO'

The resulting struct has one field, where field-name = "outp1" and field-value = "outputTWO". It seems like it should be a cell array instead of a struct. Is this intended behavior?

@standarddeviant
Copy link
Contributor Author

Closing this because #49 is the actual issue. Still working on understanding the code.

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