In Matlab you can just type the first letters of a used command and press the arrow up key to get it back. In Bash you can do the same, but you have to press page up instead of arrow up.
If you want to have the same behavior in Bash as in Matlab, you can do it this way:
Create ~/.inputrc and add the following lines:
# Matlab like Bash history