Effacer les filtres
Effacer les filtres

User defined function for three scripts

1 vue (au cours des 30 derniers jours)
matlabgod
matlabgod le 22 Oct 2018
Commenté : matlabgod le 22 Oct 2018
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?

Réponse acceptée

Stephan
Stephan le 22 Oct 2018
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

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by