-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatlab.json
More file actions
57 lines (54 loc) · 1.03 KB
/
Copy pathmatlab.json
File metadata and controls
57 lines (54 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"MatLab Function Template": {
"prefix": "MatLabFunction",
"body": [
"function ${1:${TM_FILENAME_BASE}}",
"\t% <Documentation>",
"\t\t% ${1:${TM_FILENAME_BASE}}()",
"\t\t% ",
"\t\t% Created by: jsl5865",
"\t\t% ",
"\t\t% Syntax:",
"\t\t% ",
"\t\t% Description:",
"\t\t% ",
"\t\t% Input:",
"\t\t% ",
"\t\t% Output:",
"\t\t% ",
"\t% <End Documentation>",
"",
"end"
]
},
"MatLab Class Template": {
"prefix": "MatLabClass",
"body": [
"classdef ${1:${TM_FILENAME_BASE}}",
"\tproperties",
"\tend",
"",
"\tmethods",
"\t\tfunction obj = ${1:${TM_FILENAME_BASE}}",
"\t\tend",
"\tend",
"",
"end"
]
},
"MatLab Name-Value Pair Function Template": {
"prefix": "MatLabNameValuePair",
"body": [
"function parameters = parseParameters(varargin)",
"\t% Name-value pairs",
"\tp = inputParser;",
"",
"\taddParameter()",
"",
"\t% Parse through parameters",
"\tparse(p, varargin{:})",
"\tparameters = p.Results;",
"end"
]
}
}