Pls, I need your help. I have a matrix of features X(100*2071 double). Then, I applied svd() on X as in the following code. I read a lot about svd (singular value decompisition) but I can not understand what is the purpose from s as in the code.

1 Ansicht (letzte 30 Tage)
clear; clc;
load X; [ s, ~ ] = svd( X ); D = s( :, 1:20 );%100*20 %%Take only the 20 columns from s
  3 Kommentare
FAS
FAS am 10 Jan. 2018
Thank you so much for your reply. So the purpose from that is to reduce the dimension of features. Actually, from my reading about dictionary learning, I found that svd is used to create the dictionaries. Therefore, from the code above, D is a dictionary, which is 100*20 (only the 20 columns from s).
FAS
FAS am 10 Jan. 2018
Bearbeitet: FAS am 10 Jan. 2018
Pls if you know any elaborated code about this concept tell me. Thank you again.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Eigenvalues finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by