Material on Strings and Cell Arrays

Through a sequence of three videos, you'll expand your background on strings and cell arrays in MATLAB, and explore new applications of strings. The first video shows how strings are stored in vectors, enabling us to perform many operations on strings that can be done on any vector. The second video explores two applications: (1) testing whether a string is a palindrome and (2) translating an RNA sequence to a sequence of amino acids. The third video illustrates how cell arrays can be used to store things of different type together in one place (e.g. numbers, strings, vectors, matrices, and other cell arrays), allowing the content to be accessed with indices.

Lecture Videos

The following links take you to the three videos

The video files are also stored in our shared folder on Google Drive. The three video files are named strings.mp4 (345 MB), stringApps.mp4 (628 MB), and cells.mp4 (294 MB).

Video Transcripts

The following pdf files provide transcripts of the three videos:

These pdf files are also stored in the shared folder on Google Drive. The material is presented in two MATLAB Live Scripts, and you can also access a pdf of these Live Scripts here:

All of the above pdf files are also stored in the shared folder on Google Drive.

Code Files

Code for the examples in these videos, including the two MATLAB Live Scripts, moreStrings.mlx and cellArrays.mlx, can be found in the download folder in the cs112 course directory on the CS file server, in a folder named strings_cells (also stored in the shared Google folder). A link to a zip file containing this code folder is also posted on the course schedule page.