Borrar filtros
Borrar filtros

Global Variable

4 visualizaciones (últimos 30 días)
Debabrata Chowdhuri
Debabrata Chowdhuri el 18 de Feb. de 2012
I want know the procedure to pass a value of a variable from one function to another.
  1 comentario
Jiro Doke
Jiro Doke el 18 de Feb. de 2012
Why don't you pass it as an input argument of the function?

Iniciar sesión para comentar.

Respuestas (1)

Prashant Somani
Prashant Somani el 18 de Feb. de 2012
define it with global
Example:
function fn1()
global var1;
function fn2()
global var1

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by