-
Notifications
You must be signed in to change notification settings - Fork 0
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
function embed error #6
Comments
Hmm. What version of Matlab are you running? Maybe Matlab's interface to the Handle Graphics system has changed. The code in if ishandle(thing)
cid = this.embedFigure(thing);
elseif ischar(thing) || isstring(thing)
cid = string(this.j.embed(java.io.File(thing)));
else
error('mailspoon:InvalidInput', 'Invalid type for thing: expected string or handle; got a %s', class(thing));
end I thought that the thing returned by Thanks for the bug report! |
That could be it. I am using MATLAB version R2021a |
Okay! I'll install R2021a and see if I can reproduce. |
Okay, here's a weird thing. I'm now running Matlab R2021a on macOS 10.14.
Here's my repro code:
And it works just fine:
For me, this
So... ¯\(ツ)/¯? Based on your screenshots, it looks like you're using this inside a Live Script or notebook context. Maybe there's something going on there? |
It seems that the embed function has a problem, as shown in the image below:
The text was updated successfully, but these errors were encountered: