

There is also the possibility to find all active webwindows using webWindows = .findAllWebwindows() Win = struct(struct(struct(app).Controller).PlatformHost).CEF This works: warning off Matlab:structOnObject Starting at Matlab 2017a the Controller does not have a Container property anymore. Unfortunately I can't comment yet, so here is another answer. svg, which is interesting, because we can export "regular" MATLAB figures in this format, and later use them as backgrounds for a uifigure :) The last two examples are based on these two posts: 1, 2, and the principle of operation is adding a background-image: "." entry to the style property of some desired UI element (which happens to be an HTML div).Ī tool for programmatic manipulation of App Designer figures can be found in this GitHub repository. WidgetId = win.executeJS("),"widgetid")']) ĭojo_style_prefix = ,'] Find the id of the DOM element we want to edit:ĭata_tag = char(struct(pnl).) If you want to set an image as background of just some region: function q41602238b Pause(0.1) % Maybe JS is still not ready.

Find the data_tag of the DOM element we want to edit:ĭata_tag = char(struct(app).) Pause(0.1) % Give the figure (webpage) some more time to load


If you want to set an image as background of the entire figure: function q41602238a
