摘要:
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) 阅读全文
摘要:
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 阅读全文
摘要:
Search for "Polacode" in extensions and install it: After installer, open "Command palette" Type "polocode". Use mouse to select code you want to crea 阅读全文
摘要:
_.omitBy and its sibling _.pickBy are popular utilities which apply filter-like functionality to objects. Both of them accept a function to determine 阅读全文
摘要:
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 阅读全文
摘要:
Load data: load featuresX.dat who: Check how many variables in your current session: who whos: details about variables: whos Clear one variable: clear 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
The whole idea is to conver matrix-matrix multiplication to matrix-vector multiplication. Not commutative: Identity matrix: % Initialize random matric 阅读全文
摘要:
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, 阅读全文