How can I change this code to make a header for each column like for instance accel X, accel Y, accel Z?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
function [] = i2c_sensor()
a = arduino('COM3', 'UNO');
imu = mpu6050(a,'SampleRate',50,'SamplesPerRead',10,'ReadMode','Latest');
for i=1:10
accelReadings(i,:) = readAcceleration(imu);
display(accelReadings(i,:));
pause(1);
end
end
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/507008/image.jpeg)
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Global or Multiple Starting Point Search in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!