- exportapp does not capture UI components created with the uihtml function.
Save UIFigure as .jpeg or Add Style to UITable with Figure (not UIFigure) Parent?
31 次查看(过去 30 天)
显示 更早的评论
I have a problem with two potential solutions. I am automating making a series of images each as a graph with a data table. My task is to export them all as jpeg. I first designed the graph and table as UIAxes and UITables of a UIFigure and was ready to export before learning that MATLAB does not allow one to export UIFigures. If anyone has a solution to do so, this will solve the problem.
If not, I've instead made a Figure with the same look. The problem is that the table needs some conditional formatting which the addStyle function worked well for. The issue is that addStyle only seems to work for UIFigures and I cannot do the same for a UITable. How can I add the desired styles to the Table in the Figure?
I've already attempted to create a UITable on a UIFigure and then reassign the Parent figure but the UITable did not accept the new parent.
0 个评论
回答(1 个)
Walter Roberson
2020-9-22
As of R2020a it is possible to export a uifigure .
See also exportgraphics() https://www.mathworks.com/help/matlab/ref/exportgraphics.html which is supported for uifigure
1 个评论
Sahithi Kanumarlapudi
2020-9-22
Yes, you can now use exportapp functionality to export a uifigure. This function was introduced in R2020b
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!