25
Sleep Diary It’s dangerous to go alone. Here take this with you!

Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Sleep DiaryIt’s dangerous to go alone. Here take this with you!

Page 2: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Pre-requisite

• Preferred that you use the VDI machine since they already have MATLAB installed.

• Have a sleep diary prepared.

Page 3: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Download the Script

• Go to class website• Click on “Homework

Assignments”

Page 4: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Download the Script

• Click on“../resources/SleepDiarySpr2020.zip”

Page 5: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Download the Script

• Should automatically download a zip file.

• Open the zip file.

Page 6: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Extract the files

• Click and drag the “SleepDiarySummer2020”folder to your V drive.

(picture doesn’t show V drive)

Page 7: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Extract the files

• On your V drive, open the folder.• Then open another folder inside

that.

Page 8: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Update the sleep diary

• Open “CS1173SleepDiarySpreadsheet”

• Excel should open up.

Page 9: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Update the sleep diary

• Fill out the respective columns correctly.

Page 10: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Update the sleep diary

• Make sure your cells format are similar to the picture.

• (1=YES, 0=NO) and 24-Hour must be used!!!

• Do not put 0 in front of the 24hr clock

• 01:00 is bad, 1:00 is good• If you pulled an all nighter, then

0:00 bedtime, 0:01 waketime• Everything must be filled!• When done, click “File”

Page 11: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Save the sleep diary

• Click “Export”• Click “Change File Type”• Click “CSV (Comma delimited)”• Click “Save As”

Page 12: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Save the sleep diary

• Click “Save”

Page 13: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Save the sleep diary

• Click “OK”

Page 14: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Save the sleep diary

• Click “Yes”

Page 15: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Create the mat file

• Close Excel• Click open “testScript”

Page 16: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Create the mat file

• MATLAB should open

Page 17: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Create the mat file

• Start replacing • lastName = [your last name]• firstName = [your first name]• gender = [your gender]• Section = [your section #]

• Do not touch “diaryFile”!• Gender must be all lowercase!

Page 18: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Create the mat file

• Run the code!

Page 19: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Create the mat file

• The output should be all black text

• If you do have any red text, then you should read the error of the code, fix any mistake in the excel and repeat the save again, and try to run the code again.

• Make sure to run the code, when excel is closed.

Page 20: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Submit the zip

• Hold ctrl and left click both “.csv” and “.mat” file

• Release ctrl and right click on selected files

• Click on “Create zip file”

Page 21: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Submit the zip

• Now we can submit the zip file to Blackboard.

Page 22: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Submit the zip

• On BB, click on “Labs/HW Turn-in”

• This might have a different location, based on your section, but the words are the same.

Page 23: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Submit the zip

• Choose the “Sleep Diary Turnin”

Page 24: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

Submit the zip

• Click on “Browse My Computer”• Select the zip file.• Click OK• Click “Submit”

Page 25: Sleep Diary - University of Texas at San Antoniocs1173/resources/CS1173Sleep_Diary_Extraction_Steps.pdf · • Excel should open up. Update the sleep diary • Fill out the respective

DONE!Remember where (directory) you did this,

as it is your dataset for Labs 3 and 4.