MATLAB Answers

How to call a property?

4 views (last 30 days)
Fred
Fred on 18 Jul 2013
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

  0 Comments

Sign in to comment.

Accepted Answer

Evan
Evan on 18 Jul 2013
Edited: Evan on 18 Jul 2013
Does the following work?
newVar = fit.Variance;

  2 Comments

Fred
Fred on 18 Jul 2013
Yes Thanks
Evan
Evan on 18 Jul 2013
No problem. :)

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products


Translated by