I'm using WebFigures in Matlab and calling the getFig function from Java
function df = getFig(file)
f = openfig(file,'new','invisible');
figure('Visible','Off')
df = webfigure(f);
close(f);
end
This above works when passing a string to a path location, however not when using a URL. Is it possible to in Java load the file from the URL and then pass it as some kind of inputstream?
OPENFIG works only with local files. Try to use URLWRITE to download the file to some temporary location and then OPENFIG to open that file.
最终,我只需要使用Java下载文件并将该位置传递给Matlab
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.