This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %this will index the final two characters of the year and place them in the %variable yy dd = num2str(num_day); %this will convert the numerical day to a string and place it in the %variable dd mmm = months(num_mon,:); %this will index the given month number to the correct month and place it %in the variable mmm str = sprintf ('%s-%s-%s',mmm,dd,yy); %this will take the string value from mm and place it first followed by a %hyphen, then take the string value from dd and place it next followed by a %hyphen, and then take the string value from yy and place it last % end...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
- Spring '08