In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function.

31 次查看(过去 30 天)
In the NewMaze function, get the text of the selected branching mode and use it as the second input to the amaze function. In these que, in code view iam writing the correct still it shows "Does the NewMaze callback use the value from the branching mode button group?" What to do now??

回答(1 个)

Brahmadev
Brahmadev 2024-4-4
Hi @Layba,
According to the task in App Building Onramp, you can edit the NewMaze callback and pass the Branching Mode as the second input by:
[wall,wx,wy] = amaze(gridsize, app.BranchingModeButtonGroup.SelectedObject.Text); % Change the button group name as necessary
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by