フィルターのクリア

Error in using string columns in KSVD

1 回表示 (過去 30 日間)
Aasim
Aasim 2014 年 2 月 4 日
回答済み: Aasim 2014 年 2 月 4 日
Hi, i am using matlab dataset 'hospital'. It also has string fields. when i try to use this dataset it gives an error when it tries to normalize the dictionary. Can anyone help in that? what kind of datatype ksvd supports? Thanks for your comments..
Note: it works well with dataset which only include numbers!

回答 (1 件)

Aasim
Aasim 2014 年 2 月 4 日
%normalize the dictionary. Dictionary = Dictionary*diag(1./sqrt(sum(Dictionary.*Dictionary))); Dictionary = Dictionary.*repmat(sign(Dictionary(1,:)),size(Dictionary,1),1); % multiply in the sign of the first element. totalErr = zeros(1,param.numIteration); Error is in this line.. and it is "Undefined function 'times' for input arguments of type 'dataset'." thanks for reading!!

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by