上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 491 下一页
摘要: Search for "Polacode" in extensions and install it: After installer, open "Command palette" Type "polocode". Use mouse to select code you want to crea 阅读全文
posted @ 2020-08-18 02:01 Zhentiw 阅读(152) 评论(0) 推荐(0)
摘要: _.omitBy and its sibling _.pickBy are popular utilities which apply filter-like functionality to objects. Both of them accept a function to determine 阅读全文
posted @ 2020-08-18 01:54 Zhentiw 阅读(276) 评论(0) 推荐(0)
摘要: Mutiplate materix: Everytime you see '.' mean element wise operator. >> A = [1 2; 3 4; 5 6]; >> B = [11 12; 13 14; 15 16]; >> C = [1 1; 2 2]; >> A*C a 阅读全文
posted @ 2020-08-17 22:04 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要: Load data: load featuresX.dat who: Check how many variables in your current session: who whos: details about variables: whos Clear one variable: clear 阅读全文
posted @ 2020-08-17 21:36 Zhentiw 阅读(105) 评论(0) 推荐(0)
摘要: You can do baisc math: 5+6 32-8 1/2 2^3 1 == 2 % ans = 0 means false 1 ~=1 % 1 not equals to 2. ans = 1 means true 1 && 0 1 || 0 xor(1, 0) Change the 阅读全文
posted @ 2020-08-17 20:39 Zhentiw 阅读(109) 评论(0) 推荐(0)
摘要: 0 mertix doesn't have inverse. Only square materix (mxm) has inverse Tanspose: % Initialize matrix A A = [1,2,0;0,5,6;7,0,9] % Transpose A A_trans = A 阅读全文
posted @ 2020-08-16 21:04 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: The whole idea is to conver matrix-matrix multiplication to matrix-vector multiplication. Not commutative: Identity matrix: % Initialize random matric 阅读全文
posted @ 2020-08-16 20:42 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: For example the predicting house pirces example, we can code it in one line for materix vector multiplication. The tip is conver size to a m*2 matrix, 阅读全文
posted @ 2020-08-15 20:52 Zhentiw 阅读(184) 评论(0) 推荐(0)
摘要: Matrices are 2-dimensional arrays: It's a 4*2 matrix 1 column's matrice is called Vector; % The ; denotes we are going back to a new row. A = [1, 2, 3 阅读全文
posted @ 2020-08-15 20:21 Zhentiw 阅读(128) 评论(0) 推荐(0)
摘要: Invoke not only able to return a promise, but also a callback function with 'sendBack' & 'receive' callbacks invoke: { // nested state with id referen 阅读全文
posted @ 2020-08-13 15:56 Zhentiw 阅读(270) 评论(0) 推荐(0)
上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 491 下一页