MATLAB: BLE can’t create characteristic for Arduino service

bluetooth low energyMATLAB

I have paired MATLAB with my Arduino nano 33 BLE board over BLE, however when I try to access the custom characteristic by UUID it keep saying
"Device profile has changed. Clear existing ble object with address FD604CB7A70C and recreate it." (code attached)
Any ideas? Thanks

Best Answer

Try putting it all in a .m file instead of going line by line in the command window.