test1 Error using test1 (line 1) Expected libraries to match one of these values:
'Adafruit/BNO055', 'Adafruit/MotorShieldV2', 'CAN', 'I2C', 'MKRMotorCarrier', 'RotaryEncoder', 'SPI', 'Serial', 'Servo', 'ShiftRegister', 'Ultrasonic'
The input, 'ExampleLCD/LCDAddon', did not match any of the valid values.
This is the program
%Program Name is Smart_car_Parking.m: %this program display the available parking slot and allow user to enter in %parking lot by pressing button. %Created on November,17,2019 by A.Patel,H.Patel and H.Parikh %It runs on the Arduino Uno Board with 'COM3' Port %it uses the 'Servo' and 'LCDAddon' Libraries from MATLAB %Input Variable %Entry Button, Exit Button and slot %Output Variable %Servo, RGB LED and LCD Screen %Entry button is assigned D8 pin and Exit button is assigned to D11 pin. %Servo is assigned to D9 pin %LCD Screen is assigned D7,D6,D5,D4,D3 and D2 Pins. %RGB LED is assigned to two pins, D12 for RED Light and D13 for Green Light clear; %This will clear all the variable from the workspace a = arduino('com3','UNO','Libraries',{'ExampleLCD/LCDAddon','Servo'}); s=servo(a,'D9'); %D9 pin is assign for servo Output slot=13; %Maximum Capacity of Parking lot lcd = addon(a,'ExampleLCD/LCDAddon','RegisterSelectPin','D7','EnablePin','D6','Da taPins',{'D5','D4','D3','D2'}); initializeLCD(lcd,'Rows',2,'Columns',16); printLCD(lcd,'!!Welcome!!'); %this will print '!!Welcome!!' message printLCD(lcd,'Availableslot:13');%this will print 'Avaliableslot:13'message configurePin(a,'D8','DigitalInput'); configurePin(a,'D11','DigitalInput') configurePin(a,'D12','DigitalOutput'); configurePin(a,'D13','DigitalOutput'); while 1 %This loop is given to continuously run the Program writeDigitalPin(a,'D12',1) % D12 pin will turn the light to RED writeDigitalPin(a,'D13',0) % D13 pin will remain close entrybutton=readDigitalPin(a,'D8');%Read Value of D8 pin (Entry Button) exitbutton=readDigitalPin(a,'D11');%Read Value of D11 pin (Exit Button) if entrybutton==1 && slot>0 writeDigitalPin(a,'D12',0) %Red Light turn off writeDigitalPin(a,'D13',1) %Green Light turn on writePosition(s,0.5) %Servo will operate and rotate to position 0.5 pause(4) %Wait for Car to Pass writePosition(s,0) %Servo will come backs to position 0 slot=slot-1; %Available slot will reduce by one if slot>0 printLCD(lcd,'!!Welcome!!'); printLCD(lcd,char("Availableslot:"+slot+'')); elseif slot==0 printLCD(lcd,'!Plz Come Back!'); printLCD(lcd,char("Availableslot:"+slot+'')); end elseif exitbutton==1 && slot<13 writeDigitalPin(a,'D12',0) %Red Light turn off writeDigitalPin(a,'D13',1) %Green Light turn on writePosition(s,0.5) %Servo will operate and rotate to position 0.5 pause(3) %Wait for Car to Pass writePosition(s,0) %Servo will come backs to position 0 slot=slot+1; %Available slot will increase by one if slot>0 printLCD(lcd,'!!Welcome!!'); printLCD(lcd,char("Availableslot:"+slot+''));