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 CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by