To calculate the length of your first and last name and save these values in a '.mat' file named 'room_size.mat' in MATLAB, you can follow the steps below:
main.m38 chars3 lines
main.m72 chars3 lines
main.m80 chars3 lines
main.m38 chars2 lines
The 'room_size.mat' file will be saved in your current MATLAB working directory and will contain the 'nameLengths' structure with the calculated lengths of your first and last name.
Note: Make sure you have write permissions in the directory where you want to save the '.mat' file.
gistlibby LogSnag