Azzera filtri
Azzera filtri

Global Variable

4 visualizzazioni (ultimi 30 giorni)
Debabrata Chowdhuri
Debabrata Chowdhuri il 18 Feb 2012
I want know the procedure to pass a value of a variable from one function to another.
  1 Commento
Jiro Doke
Jiro Doke il 18 Feb 2012
Why don't you pass it as an input argument of the function?

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Entering Commands in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by