フィルターのクリア

How to declare global variable

2 ビュー (過去 30 日間)
Muhammad Tarique
Muhammad Tarique 2016 年 4 月 23 日
回答済み: Azzi Abdelmalek 2016 年 4 月 23 日
I have multiple m-files and i want to use same global variable for all files so how should i declare and on which place

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 23 日
function y=fcn1(~)
global your_variable
do it in all your functions

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by