How to call a property?

5 ビュー (過去 30 日間)
Fred
Fred 2013 年 7 月 18 日
Hi, I am relatively new in MATLAb so sorry if my question is very simple: in my workspace they are some variables which are 1*1 but they have cube on their icon and when you open them they are more variables in them (called property). How can I call one of these properties and define it as a new variable?
My variable is named "fit" (output of arima function) and I want to call Variance
Thanks

採用された回答

Evan
Evan 2013 年 7 月 18 日
編集済み: Evan 2013 年 7 月 18 日
Does the following work?
newVar = fit.Variance;
  2 件のコメント
Fred
Fred 2013 年 7 月 18 日
Yes Thanks
Evan
Evan 2013 年 7 月 18 日
No problem. :)

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by