I have an array of 200 elements. I want to divide this array into 25 parts and find the RMS values of these parts and print 0 if it is less than 20, 1 if it is greater. Example signal1[200] Output data[8]={0,1,0,0,1,0,1,1) I find code for RMS calculation #include <stdio.h> #include <math.h> double rms(double* v, […]

Categories

## Converting array to 8-bit codes in c

- Post author By Full Stack
- Post date January 23, 2021
- No Comments on Converting array to 8-bit codes in c

- Tags -11, -23, -32, -38, -41, -48, -7}; printf("%f\n", 0, 1, 1 if it is greater. Example signal1[200] Output data[8]={0, 1) I find code for RMS calculation #include #include double rms(double* v, 10, 12, 13, 15, 16, 17, 18, 2, 20, 21, 22, 24, 25, 26, 27, 28, 3, 30, 31, 33, 34, 35, 36, 37, 39, 4, 40, 42, 43, 45], 46, 47, 49, 5, 50, 6, 7, 8, 9, I have an array of 200 elements. I want to divide this array into 25 parts and find the RMS values of these parts and print 0 if it is less, int n) { int i; double sum = 0.0; for (i = 0; i < n; i++) sum += v[i] * v[i]; return sqrt(sum / n); } int main(void), rms(v, sizeof(v) / sizeof(double))); return 0; } can you help me please ?