Remember, you need to define the variable before you use it. Also, you cannot use a CellArray as a size of an array.
fputs does not format, use fprintf to do that
I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).