I need a detailed script in order to show this works in MATLAB.
Kernighan and Ritchie, who created the C language, advise that, "The first program to write in any language is the same for all languages: Print the words "hello, world". This is the basic hurdle; to leap over it you have to be able to create program text somewhere, compile it successfully, load it, run it, and find out where your output went. With these mechanical details mastered, everything else is comparatively easy."
Write, compile and run a hello program.