I'm a begginer and i have some questions

1 visualización (últimos 30 días)
URDEA
URDEA el 18 de En. de 2023
Respondida: Priyank Pandey el 25 de En. de 2023
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.

Respuestas (1)

Priyank Pandey
Priyank Pandey el 25 de En. de 2023
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

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by