We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to use a custom matlab function in julia but I am getting an error.
I tried to do the following:
mat"""
function [result] = run(x_pos, y_pos)
result = x_pos + y_pos;
end
"""
but I am getting this error:
Error: Function definition not supported in this context. Create functions in code file.
Unrecognized function or variable 'x_pos'.
end; | Error: Illegal use of reserved keyword "end".
How can I use a custom matlab function in julia?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
My way of working, in case I need to use a matlab function is:
MSession()
function result(x_pos::Number, y_pos::Number) x_pos = mxarray(x_pos) y_pos = mxarray(y_pos) mat""" answer = result($x_pos, $y_pos) """ @mget(answer) end
Sorry, something went wrong.
No branches or pull requests
I am trying to use a custom matlab function in julia but I am getting an error.
I tried to do the following:
mat"""
function [result] = run(x_pos, y_pos)
result = x_pos + y_pos;
end
"""
but I am getting this error:
Error: Function definition not supported in this context. Create functions in code file.
Unrecognized function or variable 'x_pos'.
end;
|
Error: Illegal use of reserved keyword "end".
How can I use a custom matlab function in julia?
Thanks a lot!
The text was updated successfully, but these errors were encountered: