フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

handles function in a basic GUI

1 回表示 (過去 30 日間)
Win Thomas Halim
Win Thomas Halim 2011 年 4 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hi, im new in matlab, i just curious about the handle function in GUI. so i have this problem, suppose i have this code:
x=[1:0.1:2];
y=[1:0.1:2];
[X,Y]=meshgrid(x,y);
z=X.^2+Y.^2;
coefficient=1;
height=z.*coefficient;
surf(X,Y,height)
suppose editbox1=coefficient that i can put any coefficient i want in the editbox. the problem is i dont know where to put the "handle." funciton in my code that i can change the height of the plot according to my editbox1.
anyone can help me?
thank you

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 4 月 11 日
Put it anywhere convenient. Your bigger challenge is going to be updating the values according to the edit box. This FAQ might help with that.

この質問は閉じられています。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by