Hi. I'm really new to Matlab, but I displayed dates in my homework like this:
Originally Posted by nottheface
Edit: Here is a better method that I just came up with for my own purposes:
fprintf(fid, ['Problem 5.1 - ' datestr(now) '\r\n\r\n']);
deck(~=date -- creates a vector with a one for each position whose value does not equal 'date'.
not(the vector from last step) -- sets a one in each position that equals 'date'.
find() -- returns the index of each position with a 1 in it.