フィルターのクリア

How to pass many variables to a function

3 ビュー (過去 30 日間)
Jonathan Pulman
Jonathan Pulman 2013 年 10 月 26 日
コメント済み: Jonathan Pulman 2013 年 10 月 26 日
I only know old Quick Basic! In that you could allow subprograms to access variables by using "DIM SHARED".
This made it easy to write code because you did not have to type in every variable each time it was passed to a subprogram.
It was easy to use a subprogram to keep the code compact and tidy.
Is there a way to do this when using a function in Matlab?
Is there a way of letting all variables access all functions?
Jonathan.

回答 (1 件)

Youssef  Khmou
Youssef Khmou 2013 年 10 月 26 日
you can use the command :
global variabes
  1 件のコメント
Jonathan Pulman
Jonathan Pulman 2013 年 10 月 26 日
Thank you, Jonathan.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeArgument Definitions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by