フィルターのクリア

How can I use a fonction result in a new script.

2 ビュー (過去 30 日間)
Viviana
Viviana 2013 年 10 月 17 日
回答済み: Nishitha Ayyalapu 2013 年 10 月 17 日
After run a function I get ans = ... on the command window. I wish to declare the result of mi function as a variable to use it in a new scrip. It's that possible?
Thanks

回答 (1 件)

Nishitha Ayyalapu
Nishitha Ayyalapu 2013 年 10 月 17 日
doc function
Example
function result = Addition(X,Y)
result = X+Y;
end
Now in any other script you can just do
Z = Addition(2,3);

カテゴリ

Help Center および File ExchangeHelp and Support についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by