show my function's figure on gui axes
1 view (last 30 days)
Show older comments
Hello for everyone,
I am working for my final project.And I've created a script by phased array toolbox which name is main.m.This script has 7 helper functions.And one of these helper functions is drawing function.
This drawing function's outputs are sublotted figure and matrix viewer(figure and matrix viewer aren't in same window).
I want to show these outputs on my interface which I made on GUI by guide. Suplotted figure includes 4 graphs.And I wanna show this on axes1.And I wanna show the other one ( matrix viewer) on axes2 But not an image. I wanna rotate 3d plots on gui window.
Before the using phased array toolbox when I wanna draw 3d plot and show the plot on gui axes , I wrote axes(handles.axes1) command. But it is not working in this case.
I copied the main.m 's code to pushbutton callback funtction. Main.m is runnig drawing function.
All my .m files is in same folder.
I showed some codes of drawing function below.I hope someone can help me.
hPlots.htxpath = plot3(txpos(1),txpos(2),txpos(3),...
'Color','k','Marker','o','MarkerSize',msize,'LineStyle','none','Parent');
hold on;
.
.
.
.
hPlots.himg = phased.scopes.MatrixViewer( ...
.
.
.
.
hPlots.htgtcirc = plot(hPlots.himg.Axes,
.
.
.
2 Comments
Cris LaPierre
on 1 Jun 2020
Typically you achieve this by specifying the target axis. The snippet of code you show suggest you are doing that. Unfortunately, we are not as knowlegable of your layout and design as you are. I recommend attaching your files so that we can actually run your gui and test out solutions. This is a complex gui. Few if any will be motivated enough to mock up something on their own.
Answers (0)
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!