X.coords = something?

1 回表示 (過去 30 日間)
kajal
kajal 2011 年 3 月 30 日
Hi,
I am trying to understand a code.. the following equation is in it:
y.coords{t} =(sorted_eig_vect(:,1:dimension(t)).*(ones(N,1)... *sqrt(sorted_eig_val(1:dimension(t)))'))';
what does the y.coords do exactly? This may be pretty basic but I really don't know the *.coords thing. Any help or insight to this would be great.
Thanks - K

採用された回答

Matt Fig
Matt Fig 2011 年 3 月 30 日
This creates a field in the structure y. This field is a cell array. Look at this:
Y.myfield = 2;
Y.yourfield = 3;
Y % Show the structure Y.
Y.ourfield{1} = magic(3);
Y.ourfield{2} = magic(4);
Y % Show the structure Y.
Now to access the values stored in the fields of the structure Y, use structure addressing:
R = Y.myfield
S = Y.yourfield
T = Y.ourfield{2}
For more information, search the documentation for structures. You could start here:

その他の回答 (1 件)

kajal
kajal 2011 年 4 月 1 日
Thank you

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by