Reading string in arduino

I'm using a fprintf function in matlab in writing string to a serial port. My question is, can arduino read, pick up and insert the string in my arduino codes right away? Is the string get flushed after it is written in matlab? My buffer seems to be empty and arduino is reading also empty.

My buffer seems to be empty and arduino is reading also empty. HELP!!!!!!!

No need to shout, just go back to the sticky thread on how to use this forum and follow
its advice. At the very least post all your code in code tags and explaining what you
expect it to do and what it actually does...

Vmateo:
Is the string get flushed after it is written in matlab? My buffer seems to be empty and arduino is reading also empty. HELP!!!!!!! :frowning:

Please don't open duplicate threads with the same question. You have an answer on your other thread at Reading String from Serial Port - #8 by system - Programming Questions - Arduino Forum. I will go there right now and clarify my latest answer. If you load and run the code I posted, your Serial data will be read and echoed back.