how do i change subfunctions to a switch
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Mobile Fundamentals en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!