This might be a bug in MATLAB R2019b according to this bug report:
The solution on the page says to update your MATLAB version to at least R2019 Update 2 or later.
Hope this helps!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!