I'm a begginer and i have some questions

1 回表示 (過去 30 日間)
URDEA
URDEA 2023 年 1 月 18 日
回答済み: Priyank Pandey 2023 年 1 月 25 日
Build a GUI application for treeplot(p) , treeplot(p,nodeSpec,edgeSpec) syntaxes. It is required that the graphic interface contains:
1. A menu called "Syntax" and with 2 submenus that allow selecting the syntax of the desired function
3. Graphic list objects (DropDown) for reading the input arguments nodeSpec, edgeSpec and a button called "Result" which, when activated, will display in a graphic window the tree returned by treeplot and the nodes, together with their labeling in an object . axis graph (hint: the treelayout() function is used)
My problem here is i dont know how when i press the button Result to take in consideration wich sub-menu i've selected before
% Menu selected function: treeplotpMenu
function treeplotpMenuSelected(app, event)
app.p=str2num(app.pEditField.Value)
if(app.RezultatButtonPushed) % here i get "too many arguments" error
treeplot(app.p)
end
Also I need the treeplot graphic to be drawn in the app tab, not in a new one(figure1), my teacher told me to use treelayout but i dont know how to use it.

回答 (1 件)

Priyank Pandey
Priyank Pandey 2023 年 1 月 25 日
Hi Urdea,
I understand you want to build a GUI application for treeplot.
You can refer to the following link to learn more about MATLAB GUI:
To learn more about treeplot please refer to the following document:
Regards
Priyank

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by