The bar code readers I've used act like a keyboard. Whatever letters and numbers you see below the bar code, that's what gets typed in. It' just as if you had manually typed in those characters on your keyboard. Really very very simple and easy to use since they act just like a keyboard.
I just answered this yesterday:http://www.mathworks.com/matlabcentral/answers/108076#answer_116773 with the very same codes. Perhaps megan is your classmates. So it looks like it must be homework, which, to be honest, means you should have tagged your post with a "homework" tag.
Best Answer