MATLAB R2021b - student use INSERT VIEW Section Break A Normal BIUM Refactor % Run and Advance Text Code Control Task Ru
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
MATLAB R2021b - student use INSERT VIEW Section Break A Normal BIUM Refactor % Run and Advance Text Code Control Task Ru
MATLAB R2021b - student use INSERT VIEW Section Break A Normal BIUM Refactor % Run and Advance Text Code Control Task Run Step Stop Run Section Run to End TEXT CODE SECTION RUN o ocuments Editor - untitled5.mlx* itled 3.mix xuntitled4.mlx * x untitled5.mlx * x untitled6.mlx + x untitled8.mlx 30 clear alll a = arduino /dev/cu.usbmodem101', 'Uno', 'Libre Invalid pin number. Valid pin numbers servo_motor = servo(a, 'D5'); for this board Uno are "02-013", "A0- sensor = ultrasonic(a, 'Ultrasonic', '09', 010 A5". P = 1; table = zeros(180,2); for angle = 0 : 1/180 : 1 WritePosition(servo_motor, angle); anglets distance = readDistance(ultrasonicobj); writeDigitalPin(a, '111', 1); writeDigitalPin(a, '111', 0); table (p, 1) = (p-1); table(p, 2) = round(distance * 100,2); p = p + 1; end q = 1; for angle = 1 : -1/180 : 0 nmand Window AvailableAnalogPins: {'A0-A5'} AvailableI2CBusIDs: [0] Libraries: {'Servo', 'Ultrasonic'} how all properties
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!