how do i change subfunctions to a switch
Ältere Kommentare anzeigen
hi im working on a code which has muliple subfunctions
function main
question 1
calls function 1
quesion 2
calls function 2
question 3
calls function 3
end
function 1 ()
end
function 2 ()
end
function 3 ()
end
question: how do i combine the last three functions to a switch such that when i input the question number it solves the particular question?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Mobile Fundamentals finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!