User defined function for three scripts

So I have three scripts that each create a different wave plot using the same inputs. How can I make a program that asks the user for the three inputs first, then asks which type of wave then displays the plot?

 Respuesta aceptada

Stephan
Stephan el 22 de Oct. de 2018

0 votos

Hi,
read about input and case/switch/otherwise. Then save your three different functions with the corresponding name in your Matlab Path and call them in dependence of the user choice (by input) with the arguments given by the user. - Thats it.
Best regards
Stephan

Más respuestas (0)

Categorías

Más información sobre Graphics Objects en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 22 de Oct. de 2018

Comentada:

el 22 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by