user interface - Matlab GUI : Get a figure from an external application and show it in the GUI -


first of advance , sorry bad english not native tongue.

my level in matlab gui zero, need make simple application.

so made gui built-in assistant. have slider go 0 1 , button 'update'. goal when click on button value slider, send function made, figure returned function , show in gui.

my function have fh=figure in , return (as output).

here simplified version of function :

    function fh = draw_something_2d(p,t)     fh=figure     hold on;     %some treatment , lot of plotting     xlabel('axe x')     ylabel('axe y')     zlabel('axe z')     title('title of things')     hold off; 

and items have tags : button named :button_maj , slider : slider

anyway i'm working on matlab r2014a.

can help?

thanks

edit built-in assistant mean "guide" assistant.

when click push button want figure made exterior function show in gui. in pseudo code

    on_click_pushbutton{      axe1.graphic=draw_something_2d(15,slider.getvalue());     } 

well not able find clean solution copy-pasted code , accessed directly "on click" function. within able access directly figure named "axe1" standard matlab example show. not clean solution one.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -