When I try to remove a message from an empty messageHistory, the error message is technically incorrect:
>> messages = messageHistory;
>> removeMessage(messages,1)
Error using messageHistory/removeMessage (line 217)
Index exceeds the number of array elements. Index
must be less than or equal to 0.
When I try to remove a message from an empty messageHistory, the error message is technically incorrect: