Info
この質問は閉じられています。 編集または回答するには再度開いてください。
I want to set axis from gui with a figure that it's plotted in a function. How do I do that?
1 回表示 (過去 30 日間)
古いコメントを表示
So I have a GUI with a pushbutton and two axis. In the pushbutton callback, I placed a code with a function I created that makes some calculus and plots two figures: figure(1) and figure(2).
Something like:
%pushbutton callback:
track_plotter(a,b,c);
and my function is something like: function track_plotter(a,b,c)
%makes calculus with a,b,c
figure (1)
%plots figure(1)
figure(2)
%plots figure(2)
What is happening is that the figures appear in diferent windows as figures instead of appearing in axes1 and axes 2 as I want.
Sorry for my bad English, I don't know if I made myself clear...
Thanks!
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2013 年 3 月 2 日
編集済み: Azzi Abdelmalek
2013 年 3 月 2 日
plot(handles.axes1,t1,y1)
plot(handles.axes2,t2,y2)
3 件のコメント
Azzi Abdelmalek
2013 年 3 月 2 日
You can put handles in your function input argument
function y=fcn(handles,a,b,c)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!