Set a global variable in a script with multiple functions
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
I have a script that contains about 5 functions and they all need access to a String array.
Is there a way I can only define the string array once in the script but so all the functions can access it?
0 comentarios
Respuestas (1)
  Azzi Abdelmalek
      
      
 el 12 de Jul. de 2014
        You can't do it, you have to declare the variable as global in each function
0 comentarios
Ver también
Categorías
				Más información sobre Characters and Strings en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

