Activity

To participate in this activity, you'll need to have MATLAB open on your computer. To do this, please follow the instructions under Accessing MATLAB --- to save installing anything, I recommend you use MATLAB Online.

Download a copy of the data and save it on your computer

Upload the data file to MATLAB

To do this, click the "Upload" button under the HOME tab, then navigate to and select the data.csv file.

Import the data into the MATLAB Workspace

In the Command Window, enter the following (hint: use copy and paste) after the >> prompt:

mystery = importdata('data.csv')

Then click Enter (or Return) on your keyboard.

This will save the data.csv file under the variable name mystery.

Show the image hidden within the CSV file

In the Command Window, enter the following command after the >> prompt:

imshow(mystery)

Then click Enter (or Return) on your keyboard.

imshow() is a function in MATLAB which will show an image. This function takes one argument (piece of information): the image, which in this case is mystery.

For more information on imshow(), please visit: https://au.mathworks.com/help/images/ref/imshow.html

What do you see?

Last updated

Was this helpful?