How to pass many variables to a function
Mostra commenti meno recenti
I only know old Quick Basic! In that you could allow subprograms to access variables by using "DIM SHARED".
This made it easy to write code because you did not have to type in every variable each time it was passed to a subprogram.
It was easy to use a subprogram to keep the code compact and tidy.
Is there a way to do this when using a function in Matlab?
Is there a way of letting all variables access all functions?
Jonathan.
Risposte (1)
Youssef Khmou
il 26 Ott 2013
you can use the command :
global variabes
1 Commento
Jonathan Pulman
il 26 Ott 2013
Categorie
Scopri di più su Variables in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!