上一页 1 ··· 190 191 192 193 194 195 196 197 198 ··· 477 下一页
摘要: t=[0:0.01:0.98]; y1 = sin(2*pi*4*t); plot(t, y1) If you draw tha cos function, it will replace the sin function figure to a new one y2 = cos(2*pi*4*t) 阅读全文
posted @ 2020-08-19 02:27 Zhentiw 阅读(185) 评论(0) 推荐(0)
摘要: When working in a codebase that has frontend, backend, middleware, service, and other concerns all in the same GIT repository, it can be helpful to co 阅读全文
posted @ 2020-08-18 02:10 Zhentiw 阅读(152) 评论(0) 推荐(0)
摘要: 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 阅读(170) 评论(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 阅读(299) 评论(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 阅读(144) 评论(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 阅读(123) 评论(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 阅读(128) 评论(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 阅读(246) 评论(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 阅读(240) 评论(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 阅读(205) 评论(0) 推荐(0)
上一页 1 ··· 190 191 192 193 194 195 196 197 198 ··· 477 下一页