MATLAB Answers

show my function's figure on gui axes

2 views (last 30 days)
Muhammed Burak DURAN
Muhammed Burak DURAN on 1 Jun 2020
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
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.
Muhammed Burak DURAN
Muhammed Burak DURAN on 1 Jun 2020
actually I can't share code.
What do you suggest to solve this problem?
Is there any lessons or resources about this subject ?
I can be more specified about the problem.

Sign in to comment.

Answers (0)