Is it possible to embed MATLAB figures in a modern .Net user interface such as WinUI, WPF, or MAUI?
22 views (last 30 days)
Show older comments
I'd like to create the user interface for my application using one of the modern .Net UI frameworks such as WinUI, WPF, or MAUI but still use MATLAB functions such as plot, histogram, and imshow for data visualization, ginput for interaction, etc. I know that it's possible using the Compiler SDK to call MATLAB from .Net and have it display images and plots, but what I'd really like to do is display those images and plots embedded in the .Net-based UI, rather than have them pop up as separate windows. Can this be done? If so, how?
I saw one very old StackOverflow post about doing this in a WinForms app (c# - how to plot matlab figure inside winform application? - Stack Overflow) but nothing more recent about doing it with one of the modern UI frameworks.
0 Comments
Answers (1)
Neha
on 29 Aug 2023
Hi Matt,
I understand that you want to display MATLAB images and plots embedded in a .NET-based UI. Currently this feature is not supported, a possible workaround is explained here: Can I embed a MATLAB GUI in a .NET Windows Form with MATLAB Builder NE 3.0.1 (R2009a)? - MATLAB Answers - MATLAB Central (mathworks.com)
Hope this helps!
See Also
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!