- "designfilt" function: https://www.mathworks.com/help/dsp/ref/designfilt.html
- "filter" function: https://www.mathworks.com/help/matlab/ref/filter.html
How can I implement lowpass filter on matrix (1885*1)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dear all, May i ask a question about how to implement lowpass filter on matrix A (1885*1). I try lot of way to make a lowpass filter, but it is not work. Thank you for helping me!!
A=
90
88
86
85
84
82
81
79
79
79
78
62
61
60
60
60
60
58
44
70
71
72
72
71
70
66
37
5
3
2
4
74
75
76
77
78
78
78
78
77
81
83
84
84
84
85
95
97
98
98
98
98
98
97
95
86
76
76
76
77
78
77
76
74
74
75
75
75
78
78
79
78
77
73
73
73
72
71
69
68
65
64
78
78
50
51
51
63
64
65
64
63
56
56
59
59
65
65
65
26
25
50
52
53
54
54
54
76
76
64
69
73
77
79
80
85
86
87
90
91
91
90
88
88
88
88
87
86
71
70
61
61
62
62
62
61
60
59
58
58
59
59
59
35
35
35
34
67
68
70
72
73
74
74
74
73
72
65
65
66
68
70
71
72
73
74
74
74
73
72
71
72
73
73
73
72
71
64
63
61
60
62
63
64
64
65
65
65
65
64
63
40
40
38
53
55
56
48
47
47
49
51
54
55
56
56
55
55
56
56
55
55
54
54
53
53
54
55
56
58
60
60
60
60
61
61
60
59
56
54
52
51
50
34
34
34
35
52
52
52
56
57
58
59
60
60
60
60
60
61
61
60
59
57
58
58
58
57
47
48
58
59
59
59
59
59
59
61
61
62
62
61
60
59
59
60
60
60
61
61
62
62
62
62
61
59
57
57
60
60
54
54
54
54
54
54
59
60
61
62
63
64
64
64
65
65
65
66
67
67
66
66
66
66
66
66
66
67
66
65
65
65
66
66
66
66
66
66
66
66
66
59
59
59
60
61
61
68
69
70
70
69
68
60
60
60
60
61
63
63
65
65
65
65
65
64
62
60
53
52
49
49
49
51
51
52
51
60
61
62
63
63
62
61
57
57
56
56
56
57
58
58
57
57
46
47
48
54
55
56
58
60
62
63
63
63
63
62
60
58
57
58
58
58
58
58
58
58
58
58
58
58
59
60
62
63
63
63
63
63
61
60
58
55
46
44
50
51
52
52
53
54
54
53
59
61
61
61
61
61
60
58
56
51
45
47
52
55
57
58
58
59
59
59
58
57
55
53
52
52
52
53
53
53
53
54
53
53
53
53
52
51
51
50
49
47
46
46
46
49
50
51
51
50
49
41
50
51
52
53
53
53
53
55
56
56
57
57
58
59
59
59
59
59
59
59
60
59
58
49
49
49
50
52
59
60
61
61
63
64
64
64
64
63
61
59
53
51
50
49
44
42
41
41
40
40
52
54
55
56
57
57
58
59
58
57
56
56
57
59
60
60
60
61
61
60
60
60
58
58
59
59
60
59
58
57
59
60
61
61
61
63
64
65
66
67
66
65
64
58
51
50
55
55
55
58
60
61
61
61
61
61
60
59
60
61
61
61
61
62
61
60
79
80
81
80
79
78
75
75
74
72
71
69
47
49
49
50
51
51
55
57
58
58
59
60
60
60
60
59
58
58
57
55
53
49
48
47
47
48
48
48
47
47
48
48
48
42
57
59
60
62
63
64
63
62
63
63
62
62
61
60
56
55
53
52
50
47
53
53
54
56
56
57
57
57
58
59
60
59
58
56
45
44
41
26
28
32
36
41
41
43
47
50
53
55
57
58
58
59
59
60
60
59
58
57
57
56
56
56
55
55
55
55
55
54
53
50
46
47
47
47
48
48
51
52
55
56
56
55
53
54
54
54
53
52
49
47
46
34
33
32
28
52
42
43
61
63
65
65
65
65
65
65
64
62
52
51
51
51
57
57
55
55
54
45
44
44
43
42
38
37
36
37
38
38
57
59
61
62
65
67
68
68
68
68
68
67
65
63
62
63
65
68
69
69
70
71
71
71
71
70
68
65
62
55
35
34
33
30
25
27
26
34
35
40
44
45
46
46
46
46
45
45
50
51
52
53
52
51
19
18
17
51
51
52
52
51
50
50
49
48
47
47
47
46
45
39
40
41
42
42
42
56
64
69
71
72
73
73
73
73
72
70
67
66
65
64
58
58
58
57
57
56
54
53
51
48
47
46
47
47
47
47
47
46
46
45
43
41
42
42
46
47
50
51
52
53
53
54
53
53
53
52
51
50
47
48
49
49
48
48
48
49
50
49
48
38
37
34
37
47
49
51
52
52
52
53
54
53
53
53
53
53
52
51
48
46
45
45
45
44
39
40
41
42
41
41
47
49
51
52
52
52
52
52
53
54
55
54
54
54
53
52
51
52
52
51
50
50
51
51
52
52
52
53
54
54
53
52
52
50
48
46
43
42
43
45
46
46
46
46
47
47
49
50
51
52
52
51
50
50
50
51
52
52
53
53
53
53
45
47
48
49
48
47
46
43
42
41
39
39
40
41
41
41
42
42
42
43
44
44
43
44
44
44
44
44
43
42
41
41
40
40
41
43
43
45
46
46
46
46
46
45
45
46
47
48
48
47
46
45
45
44
43
42
41
40
38
37
34
34
33
32
31
30
27
26
23
39
39
41
42
43
44
44
44
44
44
43
41
35
35
34
40
40
37
38
40
42
43
44
46
48
49
50
51
51
51
50
49
15
37
37
36
37
36
35
35
35
35
36
39
40
41
41
41
41
41
40
40
40
39
39
38
38
37
36
35
55
56
57
57
57
57
57
56
56
55
54
32
32
31
24
24
24
24
23
22
20
19
17
14
13
12
25
26
26
26
26
27
27
27
28
29
28
27
26
27
28
30
32
33
34
34
34
34
33
31
29
24
24
24
12
25
26
27
27
27
26
25
32
35
37
39
40
40
40
40
40
38
36
33
16
29
29
30
29
28
27
27
26
24
19
19
18
18
19
20
20
19
13
12
11
11
29
31
33
33
33
33
33
35
36
37
37
38
37
36
36
37
37
37
38
37
36
35
34
35
35
35
35
35
34
33
33
32
30
50
51
52
51
50
47
46
51
51
51
51
50
49
15
16
29
29
30
30
30
29
28
32
33
34
35
35
34
32
32
31
29
27
3
3
2
4
10
20
30
31
32
33
32
31
30
30
30
30
29
28
26
19
15
17
19
23
24
25
25
24
23
22
21
23
25
26
26
27
28
36
38
39
39
40
40
40
40
39
40
40
39
38
37
34
34
34
33
26
26
26
28
30
31
31
31
27
29
29
29
30
30
29
28
28
27
26
26
27
27
27
27
27
26
25
25
24
26
28
32
33
34
34
34
33
33
33
31
30
28
26
26
20
16
17
18
18
18
19
22
28
30
31
32
32
32
32
31
30
29
28
28
27
26
30
30
30
22
23
24
24
24
25
26
26
27
27
29
30
31
30
34
34
34
33
32
32
31
31
30
29
27
13
16
17
18
19
19
20
21
22
22
21
24
25
25
25
20
22
24
26
26
27
28
29
28
28
28
28
28
26
25
24
25
26
26
27
27
27
28
29
29
28
28
29
30
30
30
29
28
27
26
24
21
21
16
21
21
21
28
29
30
30
31
31
32
32
33
32
32
34
35
36
35
34
33
33
33
32
31
29
9
7
13
15
17
18
19
19
19
19
21
22
22
21
20
20
20
19
18
20
21
23
25
25
25
25
25
24
23
23
24
25
26
28
29
30
30
30
30
31
30
29
25
25
24
24
24
17
17
17
21
21
21
21
22
23
23
26
27
28
29
29
29
29
29
28
27
23
23
22
20
17
17
16
20
21
22
23
23
23
25
27
28
29
29
29
28
27
28
28
29
30
31
30
29
28
20
19
12
11
9
31
34
35
36
36
35
36
37
37
36
35
33
31
30
29
28
25
24
23
14
16
18
19
23
25
26
27
27
27
27
26
25
24
23
23
25
26
26
26
26
26
24
22
22
21
21
22
23
24
24
25
25
25
25
25
24
24
24
30
31
32
32
31
30
28
27
26
26
25
23
21
20
19
18
18
19
20
21
21
20
19
19
19
18
16
13
2
2
2
2
4
6
18
21
22
23
23
23
23
22
21
19
18
18
19
19
18
18
17
16
15
14
12
9
15
17
19
19
19
20
20
26
27
28
27
26
26
26
26
26
30
30
31
30
29
15
15
15
13
11
2
2
4
6
7
7
17
18
19
18
17
16
8
8
8
8
6
4
2
2
4
6
8
8
8
8
8
6
4
2
2
2
2
2
2
2
2
2
4
6
7
8
9
9
10
11
12
13
13
13
12
11
9
4
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
0 comentarios
Respuestas (1)
Avadhoot
el 14 de Feb. de 2024
Hi,
I infer from your question that you want to apply a lowpass filter on your 1885x1 matrix. This can be accomplished fairly easily in MATLAB using the function "designfilt". There are two steps to apply a filter on your data. They are as follows:
1. Design the filter: First you need to design the filter by specifying the required properties like the sampling frequency, cutoff frequency and the filter order. A sample filter design can be as follows:
Fs = 1000; % Sampling frequency in Hz (you will need to set this according to your data)
Fc = 50; % Cutoff frequency in Hz
order = 5; % Filter order (you can adjust this as needed)
% Design a low pass filter using a Butterworth design
lpFilt = designfilt('lowpassfir', 'FilterOrder', order,'CutoffFrequency', Fc, 'SampleRate', Fs);
2. Apply the filter: You can use the "filter" function to apply the lowpass filter to your data. The following code is an example of how you can do it:
filteredData = filter(lpFilt, A);
More information about the above mentioned functions can be found in the below documentation:
I hope it helps.
0 comentarios
Ver también
Categorías
Más información sobre Filter Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!