Effacer les filtres
Effacer les filtres

Global Variable

4 vues (au cours des 30 derniers jours)
Debabrata Chowdhuri
Debabrata Chowdhuri le 18 Fév 2012
I want know the procedure to pass a value of a variable from one function to another.
  1 commentaire
Jiro Doke
Jiro Doke le 18 Fév 2012
Why don't you pass it as an input argument of the function?

Connectez-vous pour commenter.

Réponses (1)

Prashant Somani
Prashant Somani le 18 Fév 2012
define it with global
Example:
function fn1()
global var1;
function fn2()
global var1

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by