use of the below statements....

can any one explain me about this statements? net=newsom(minmax(P),[64 2]); Q=double(reshape(Q,64,1));

 採用された回答

Jos (10584)
Jos (10584) 2013 年 7 月 16 日

1 投票

Matlab comes with great help
help newsom
help minmax
help double
help reshape
...

1 件のコメント

Iain
Iain 2013 年 7 月 16 日
instead of help, you can use doc. - Its a bit prettier. help and doc don't always contain all of the same info.

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

その他の回答 (1 件)

Matt J
Matt J 2013 年 7 月 16 日

0 投票

Q=double(reshape(Q,64,1));
reshapes Q into a 64x1 vector and converts it to double floating point type.

4 件のコメント

uday
uday 2013 年 7 月 16 日
??? Error using ==> reshape To RESHAPE the number of elements must not change.
Error in ==> simsom at 28 Q=double(reshape(Q,64,1)); y iam i getting this error in my face recognition project? help me plz
Matt J
Matt J 2013 年 7 月 16 日
編集済み: Matt J 2013 年 7 月 16 日
What is size(Q)?
uday
uday 2013 年 7 月 16 日
i dont know this is my code...... load data.mat %Declare training data P=[r h b bd]; %Create SOM neural network %(64 minimum points and 64 maximum points) net=newsom(minmax(P),[64 2]); %Train SOM neural network for 1000 epochs net.trainParam.epochs=100; net=train(net,P); %Plot SOM layer weights x=net.iw{1,1},net.layers{1}.distances; figure, plot(dist(x),'o'); title('SOM Layer Weights'); xlabel('Layer Weights'); ylabel('Magnitude'); %Plot SOM weight vectors figure, plotsom(net.iw{1,1},net.layers{1}.distances) sx=sim(net,P); [l,m]=size(sx); for u=1:1:m sm(u)=find(sx(:,u)); end %Load input face image Q=imread('hulk6.jpg'); Q=double(reshape(Q,64,1));
Matt J
Matt J 2013 年 7 月 16 日
I can't read the code since you haven't used "{} Code" formatting tool.

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

カテゴリ

ヘルプ センター および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by