Effacer les filtres
Effacer les filtres

MATLAB: Calculate the frequency response of acceleration data

3 vues (au cours des 30 derniers jours)
marcusbarnet
marcusbarnet le 10 Jan 2018
hi to all,
I have a vector in Matlab which contains samples acquired at 10Hz from an accelerometer mounted on a frame's vehicle. This vector contains the acceleration values along the Z-axis. The acquisition time is 103 seconds.
I would like to plot the frequency values in Hz since I'm trying to study the terrain frequency response.
I tried to use the fft function available in Matlab, but I do not know how to proceed. Can you help me, please?
These are the values contained in my vector:
size(vibration)
ans =
1024 1
vibration =
-0.0005
-0.0006
-0.0007
-0.0008
-0.0010
-0.0011
-0.0012
-0.0013
-0.0014
-0.0015
-0.0016
-0.0017
-0.0018
-0.0019
-0.0020
-0.0021
-0.0022
-0.0023
-0.0024
-0.0026
-0.0027
-0.0025
-0.0003
-0.0038
-0.0089
-0.0035
-0.0018
-0.0022
0.0004
0.0034
0.0063
-0.0023
-0.0046
-0.0022
-0.0043
0.0041
0.0025
0.0024
0.0037
0.0050
0.0060
0.0012
0.0058
0.0019
0.0008
0.0009
-0.0060
0.0004
0.0032
-0.0005
-0.0008
-0.0024
0.0021
0.0009
-0.0019
0.0003
0.0012
0.0069
0.0125
0.0209
0.0262
0.0184
0.0100
0.0058
0.0136
0.0181
0.0089
0.0058
0.0077
0.0045
0.0024
0.0015
0.0044
0.0095
0.0096
0.0087
0.0019
0.0053
0.0066
0.0033
-0.0010
0.0010
0.0116
0.0059
0.0109
0.0151
0.0130
0.0152
0.0095
0.0127
0.0178
0.0180
0.0220
0.0234
0.0253
0.0288
0.0288
0.0263
0.0214
0.0119
0.0093
0.0074
0.0091
0.0182
0.0180
0.0144
0.0151
0.0192
0.0213
0.0212
0.0223
0.0183
0.0144
0.0203
0.0172
0.0158
0.0227
0.0189
0.0189
0.0219
0.0218
0.0262
0.0250
0.0178
0.0189
0.0147
0.0100
0.0128
0.0192
0.0197
0.0128
0.0148
0.0152
0.0144
0.0111
0.0067
0.0081
0.0040
0.0021
0.0086
0.0095
0.0098
0.0111
0.0102
0.0165
0.0163
0.0142
0.0146
0.0121
0.0107
0.0090
0.0095
0.0126
0.0155
0.0151
0.0114
0.0100
0.0045
0.0046
0.0052
-0.0068
-0.0033
-0.0055
-0.0136
-0.0035
-0.0038
-0.0029
0.0013
0.0043
0.0117
0.0176
0.0278
0.0228
0.0096
0.0099
0.0153
0.0119
0.0048
0.0104
0.0126
0.0064
0.0092
0.0088
0.0104
0.0113
0.0105
0.0249
0.0307
0.0266
0.0258
0.0254
0.0254
0.0258
0.0239
0.0224
0.0226
0.0229
0.0220
0.0197
0.0201
0.0169
0.0246
0.0264
0.0273
0.0366
0.0282
0.0300
0.0323
0.0320
0.0259
0.0097
0.0103
-0.0052
-0.0069
0.0156
0.0098
0.0025
0.0081
0.0118
0.0085
0.0094
0.0117
0.0091
0.0139
0.0135
0.0153
0.0103
-0.0005
-0.0056
-0.0039
0.0044
0.0014
0.0021
0.0019
-0.0011
-0.0018
0.0034
0.0083
0.0046
0.0173
0.0218
0.0203
0.0210
0.0144
0.0095
0.0044
0.0048
0.0014
-0.0001
0.0034
0.0065
0.0110
0.0081
0.0147
0.0218
0.0131
0.0167
0.0201
0.0207
0.0193
0.0188
0.0171
0.0170
0.0203
0.0079
0.0045
0.0063
0.0012
0.0011
0.0058
0.0094
0.0072
0.0143
0.0257
0.0265
0.0185
0.0149
0.0157
0.0158
0.0171
0.0093
0.0055
0.0091
0.0054
0.0061
0.0141
0.0177
0.0173
0.0172
0.0205
0.0189
0.0193
0.0289
0.0252
0.0202
0.0137
0.0122
0.0184
0.0085
0.0098
0.0220
0.0178
0.0205
0.0207
0.0192
0.0264
0.0236
0.0172
0.0221
0.0215
0.0175
0.0173
0.0129
0.0153
0.0024
-0.0026
0.0164
0.0173
0.0113
0.0095
0.0081
0.0149
0.0192
0.0118
0.0157
0.0196
0.0159
0.0136
0.0131
0.0137
0.0111
0.0108
0.0079
0.0020
0.0017
0.0067
0.0092
0.0067
0.0054
0.0130
0.0126
0.0064
0.0127
0.0097
0.0059
0.0081
0.0047
0.0089
0.0153
0.0047
0.0054
0.0121
0.0008
0.0005
0.0047
0.0051
0.0014
0.0026
0.0098
0.0038
0.0065
0.0128
0.0075
0.0034
0.0052
0.0041
0.0040
0.0053
0.0064
0.0067
0.0049
0.0057
0.0013
0.0045
0.0037
0.0038
0.0058
0.0010
0.0080
0.0058
0.0007
0.0040
0.0029
0.0024
0.0027
0.0019
0.0038
0.0033
0.0036
0.0020
0.0030
0.0036
-0.0048
0.0057
0.0095
0.0013
0.0047
0.0087
0.0048
0.0004
0.0053
0.0039
0.0027
0.0011
0.0040
0.0054
0.0060
0.0093
0.0071
0.0064
0.0033
0.0134
0.0111
0.0066
0.0141
0.0076
0.0062
0.0043
0.0098
0.0087
0.0038
0.0145
0.0082
0.0053
0.0106
0.0084
0.0088
0.0074
0.0121
0.0101
0.0079
0.0142
0.0111
0.0126
0.0126
0.0115
0.0068
0.0088
0.0098
0.0065
0.0096
0.0068
0.0088
0.0065
0.0086
0.0044
0.0038
0.0087
0.0021
0.0056
0.0088
0.0105
0.0016
0.0039
0.0111
0.0025
0.0090
0.0101
0.0102
0.0091
0.0067
0.0102
0.0023
0.0073
0.0106
0.0017
0.0022
0.0082
0.0072
0.0027
0.0022
0.0006
0.0064
0.0062
0.0050
0.0088
0.0085
0.0087
0.0003
0.0064
0.0046
-0.0037
0.0003
-0.0012
-0.0029
-0.0063
0.0063
0.0071
-0.0045
0.0051
0.0086
0.0078
0.0118
0.0137
0.0093
0.0064
0.0094
0.0054
0.0047
0.0058
0.0058
0.0062
0.0075
0.0082
0.0057
0.0068
0.0046
0.0070
0.0080
0.0041
0.0062
0.0108
0.0100
0.0009
0.0067
0.0135
0.0061
0.0082
0.0120
0.0148
0.0104
0.0125
0.0220
0.0127
0.0146
0.0190
0.0095
0.0083
0.0084
0.0131
0.0132
0.0002
-0.0040
0.0012
0.0045
0.0051
0.0055
0.0046
0.0081
0.0086
0.0079
0.0052
0.0028
0.0034
-0.0008
0.0059
0.0064
0.0060
0.0082
0.0058
0.0122
0.0072
0.0046
0.0115
0.0118
0.0114
0.0031
0.0011
-0.0032
-0.0014
0.0033
-0.0022
0.0088
0.0039
0.0071
0.0128
0.0110
0.0196
0.0114
0.0123
0.0129
0.0092
0.0138
0.0170
0.0156
0.0146
0.0208
0.0215
0.0171
0.0126
0.0147
0.0133
0.0117
0.0158
0.0104
0.0145
0.0085
0.0039
0.0119
0.0073
0.0041
0.0057
0.0145
0.0084
0.0030
0.0125
0.0096
0.0155
0.0187
0.0200
0.0217
0.0145
0.0115
-0.0015
0.0018
0.0021
0.0001
0.0045
0.0006
0.0078
0.0110
0.0117
0.0092
0.0061
0.0057
-0.0001
-0.0064
-0.0070
-0.0007
-0.0005
0.0008
0.0067
0.0059
0.0047
0.0020
0.0101
0.0121
0.0059
0.0056
0.0033
0.0066
0.0065
0.0019
0.0005
0.0009
0.0052
0.0013
0.0045
0.0151
0.0108
0.0069
0.0030
0.0069
0.0187
0.0201
0.0222
0.0242
0.0204
0.0176
0.0147
0.0175
0.0147
0.0150
0.0218
0.0237
0.0262
0.0246
0.0278
0.0273
0.0204
0.0219
0.0233
0.0134
0.0112
0.0210
0.0184
0.0173
0.0201
0.0220
0.0226
0.0170
0.0195
0.0241
0.0181
0.0173
0.0201
0.0163
0.0233
0.0109
-0.0011
0.0139
0.0114
0.0131
0.0152
0.0099
0.0145
0.0111
0.0166
0.0111
0.0042
0.0161
0.0044
0.0013
0.0024
-0.0080
-0.0007
-0.0046
-0.0063
0.0038
-0.0002
-0.0014
0.0060
0.0090
0.0099
0.0113
0.0059
0.0093
0.0050
0.0023
0.0084
0.0051
0.0116
0.0110
0.0049
0.0089
0.0079
0.0087
0.0056
0.0013
0.0107
0.0049
-0.0032
0.0029
0.0027
-0.0001
-0.0005
-0.0012
-0.0007
-0.0041
0.0029
0.0106
0.0028
0.0063
0.0067
0.0056
0.0080
0.0005
0.0041
0.0071
0.0016
0.0047
0.0013
-0.0083
-0.0093
-0.0066
-0.0048
-0.0084
-0.0041
0.0048
-0.0013
-0.0009
0.0054
0.0024
0.0044
0.0070
0.0092
0.0126
0.0105
0.0066
-0.0084
-0.0062
0.0009
-0.0096
0.0054
0.0046
-0.0007
0.0056
0.0027
0.0205
0.0265
0.0252
0.0249
0.0287
0.0363
0.0351
0.0355
0.0185
0.0079
0.0167
0.0228
0.0211
0.0137
0.0222
0.0297
0.0377
0.0416
0.0472
0.0668
0.0572
0.0566
0.0728
0.0675
0.0658
0.0705
0.0674
0.0652
0.0653
0.0617
0.0637
0.0714
0.0830
0.0796
0.0766
0.0861
0.0721
0.0707
0.0762
0.0722
0.0715
0.0530
0.0486
0.0456
0.0445
0.0452
0.0348
0.0395
0.0392
0.0562
0.0711
0.0595
0.0531
0.0511
0.0580
0.0545
0.0495
0.0416
0.0356
0.0306
0.0163
0.0207
0.0138
0.0025
0.0061
0.0047
0.0013
-0.0002
0.0014
0.0019
0.0013
0.0012
0.0009
0.0014
0.0011
0.0012
0.0014
0.0011
0.0013
0.0013
0.0013
0.0012
0.0012
0.0012
0.0011
0.0011
0.0010
0.0010
0.0011
0.0011
0.0010
0.0010
0.0012
0.0012
0.0012
0.0011
0.0010
0.0010
0.0009
0.0009
0.0009
0.0009
0.0009
0.0008
0.0007
0.0007
0.0007
0.0007
0.0008
0.0009
0.0009
0.0010
0.0010
0.0009
0.0009
0.0008
0.0007
0.0007
0.0007
0.0007
0.0007
0.0008
0.0008
0.0008
0.0007
0.0008
0.0009
0.0008
0.0008
0.0008
0.0008
0.0008
0.0008
0.0008
0.0007
0.0006
0.0007
0.0008
0.0008
0.0007
0.0007
0.0007
0.0007
0.0007
0.0006
0.0006
0.0006
0.0005
0.0006
0.0006
0.0005
0.0005
0.0004
0.0005
0.0006
0.0006
0.0007
0.0008
0.0008
0.0007
0.0006
0.0007
0.0007
0.0007
0.0007
0.0008
0.0007
0.0007
0.0007
0.0006
0.0004
0.0003
0.0003
0.0004
0.0003
0.0003
0.0003
0.0002
0.0002
0.0002
0.0002
0.0001
0.0001
0.0001
0.0002
0.0003
0.0003
0.0004
0.0004
0.0003
0.0003
0.0003
0.0001
0.0001
0.0001
0.0000
-0.0000
-0.0001
-0.0001
-0.0002
-0.0002
-0.0002
-0.0002
-0.0003
-0.0003
-0.0003
-0.0004
-0.0004
-0.0004
-0.0004
-0.0003
-0.0002
-0.0002
-0.0002
-0.0002
-0.0002
-0.0002
-0.0001
-0.0001
-0.0002
-0.0002
-0.0002
-0.0002
-0.0002
-0.0003
-0.0003
-0.0004
-0.0005
-0.0004
-0.0004
-0.0004
-0.0003
-0.0004
-0.0003
-0.0004
-0.0006
-0.0006
-0.0006
-0.0006
-0.0007
-0.0007
-0.0007
-0.0007
-0.0007
-0.0008
-0.0008
-0.0008
-0.0008
-0.0009
-0.0009
-0.0009
-0.0009
-0.0009
-0.0010
-0.0010
-0.0010

Réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by