MATLAB 程式設計與應用 張智星
http://www.cs.nthu.edu.tw/~jang/mlbook/ch1/
MATLAB 之工程應用 馮丁樹編著
http://bime-matlab.blogspot.tw/
2015年8月7日 星期五
Matlab 找特定一行向量
cellfun
http://www.mathworks.com/matlabcentral/answers/162312-applying-formula-across-various-matrices
http://stackoverflow.com/questions/20480190/how-to-divide-each-row-of-a-cell-array-by-another-cell-array
http://www.mathworks.com/matlabcentral/answers/162312-applying-formula-across-various-matrices
mat2cell
http://www.mathworks.com/help/matlab/ref/mat2cell.html
找特定一行向量
http://www.mathworks.com/matlabcentral/answers/7434-find-vector-in-matrix
arrayfun
http://stackoverflow.com/questions/12522888/arrayfun-can-be-significantly-slower-than-an-explicit-loop-in-matlab-why
bsxfun
http://stackoverflow.com/questions/16214891/how-to-avoid-a-for-loop-in-matlab-when-performing-a-operation-on-each-row-in-a?lq=1
Apply element-by-element binary operation to two arrayswith singleton expansion enabled
C = bsxfun(fun,A,B)
A = magic(5);
A = bsxfun(@minus, A, mean(A))
A =
4 11 -12 -5 2
10 -8 -6 1 3
-9 -7 0 7 9
-3 -1 6 8 -10
-2 5 12 -11 -4
groupList3 = full(groupList1(ind,:));
groupList3unique = unique(groupList3,'rows');
indexTarget = find(result(:,1) == bestWeightNodes & result(:,2) == bestWeightUsers);
bestNodes = bsxfun(@and ,groupList3, groupList3unique(indexTarget,:));
%groupList3unique
http://www.mathworks.com/matlabcentral/answers/77713-would-a-bsxfun-operator-family-be-a-good-idea
http://www.mathworks.com/matlabcentral/answers/162312-applying-formula-across-various-matrices
http://stackoverflow.com/questions/20480190/how-to-divide-each-row-of-a-cell-array-by-another-cell-array
http://www.mathworks.com/matlabcentral/answers/162312-applying-formula-across-various-matrices
mat2cell
http://www.mathworks.com/help/matlab/ref/mat2cell.html
找特定一行向量
http://www.mathworks.com/matlabcentral/answers/7434-find-vector-in-matrix
arrayfun
http://stackoverflow.com/questions/12522888/arrayfun-can-be-significantly-slower-than-an-explicit-loop-in-matlab-why
bsxfun
http://stackoverflow.com/questions/16214891/how-to-avoid-a-for-loop-in-matlab-when-performing-a-operation-on-each-row-in-a?lq=1
Apply element-by-element binary operation to two arrayswith singleton expansion enabled
C = bsxfun(fun,A,B)
A = magic(5);
A = bsxfun(@minus, A, mean(A))
A =
4 11 -12 -5 2
10 -8 -6 1 3
-9 -7 0 7 9
-3 -1 6 8 -10
-2 5 12 -11 -4
groupList3 = full(groupList1(ind,:));
groupList3unique = unique(groupList3,'rows');
indexTarget = find(result(:,1) == bestWeightNodes & result(:,2) == bestWeightUsers);
bestNodes = bsxfun(@and ,groupList3, groupList3unique(indexTarget,:));
%groupList3unique
http://www.mathworks.com/matlabcentral/answers/77713-would-a-bsxfun-operator-family-be-a-good-idea
訂閱:
文章 (Atom)
-
Line提供Python的套件,給Python程式設計者可以使用套件API跟LINE互動,就不需要撰寫太多複雜的程式及JSON傳輸格式。套件是以Flask提供服務,啟動後,就是LINE的Webhook。 下載套件方法: pip install line-bot-sdk...
-
這個Python程式可以線上將TWNIC的台灣IP清單,轉成iptables的指令,貼到/etc/iptables.rules上,就可以限制只能台灣的IP能存取。 限制port時,用如下寫法,port 80使用"TaiwanIP"規則(平常我們是寫ACC...
-
https://blog.xuite.net/yh96301/blog/367515625-Ubuntu+15.1%E5%AE%89%E8%A3%9DVMware+Workstation+Player+12.1 https://blog.csdn.net/yzf0011/ar...