Hi Vu Canh,
Just went through this task. It works fine. First suggestion would be to restart MATLAB and see if the behavior continues. If you are still getting the errors, Try redoing the same task once again.
Hope this helps!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!