フィルターのクリア

how to see a variable of a function in the Workspace?

1 回表示 (過去 30 日間)
Rightia Rollmann
Rightia Rollmann 2016 年 8 月 14 日
編集済み: Stephen23 2016 年 8 月 14 日
How to see a variable of a function in the Workspace?
  4 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 14 日
function out_1 = test( in_1 )
global internal
out_1 = in_1 + 1;
internal = [ 1 2 ];
Save this function as test.m then in Matlab Windows command type
global internal
in_1=10 % set a value to in_1
out_1 = test( in_1 )
internal

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 14 日
function y=som(x,y,z)
global a b
a=x*y
b=y^z
y=a+b
When you call the function som
global a b
y=som(1,2,3)

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by