Matlab - mklasinc/capstone GitHub Wiki
Shortcuts
Commenting
- cmd + R [comment out]
- cmd + T [uncomment]
Strings
Split
- strsplit Based on the delimiter it returns a cell array.
data = '1.21, 1.985, 1.955, 2.015, 1.885';
C = strsplit(data,', ');
// C = 1x6 cell array
// {'1.21'} {'1.985'} {'1.955'} {'2.015'} {'1.885'} {0x0 char}
Include
- contains method It returns 1 if the pattern is matched and 0 if it is not.
chr = 'peppers, onions, and mushrooms';
TF = contains(chr,'onion')
// TF = logical
// 1
Display variables
- disp To chain variables and text together
#UDP
Asynchronous UDP
- Matlab article on asynchronous read and write over UDP
- execute callback when new data is available
#Scopes