Filter löschen
Filter löschen

Global Variable

3 Ansichten (letzte 30 Tage)
Debabrata Chowdhuri
Debabrata Chowdhuri am 18 Feb. 2012
I want know the procedure to pass a value of a variable from one function to another.
  1 Kommentar
Jiro Doke
Jiro Doke am 18 Feb. 2012
Why don't you pass it as an input argument of the function?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by