% Generate sample time-series vibration data
time = (0:0.001:0.02)'; % Time values from 0 to 0.02 sec with 1 ms step
sensor1 = [0.02, 0.03, 0.01, 0.04, 0.05, 0.02, 0.03, 0.04, 0.05, 0.03, ...
           0.02, 0.04, 0.05, 0.02, 0.03, 0.04, 0.05, 0.02, 0.03, 0.04, 0.05]';

sensor2 = [0.01, 0.02, 0.03, 0.01, 0.02, 0.03, 0.02, 0.01, 0.02, 0.03, ...
           0.01, 0.02, 0.03, 0.01, 0.02, 0.03, 0.01, 0.02, 0.03, 0.01, 0.02]';

sensor3 = [0.03, 0.05, 0.04, 0.02, 0.03, 0.01, 0.04, 0.03, 0.02, 0.05, ...
           0.04, 0.03, 0.02, 0.04, 0.05, 0.02, 0.03, 0.04, 0.05, 0.02, 0.03]';

% Combine into a table
vibration_data = table(time, sensor1, sensor2, sensor3, ...
    'VariableNames', {'Time', 'Sensor1', 'Sensor2', 'Sensor3'});

% Save to a CSV file
writetable(vibration_data, 'vibration_data.csv');

disp('Vibration data saved as vibration_data.csv');
