Matlab: Sparse Arrays
Channel: Neal Holtschulte
Date: 2023-08-25

This video introduces sparse arrays (sometimes called sparse matrices) and the sparse function in Matlab. That's the first 5 minutes. In the rest of the video I show how to create two functions, one to convert a matrix to a sparse representation and the other function to convert in the opposite direction.

All the code works perfectly in Octave as it is shown here in Matlab. This video is part of a series comprising a complete introductory course in Matlab / Octave.

The full playlist is here: https://www.youtube.com/watch?v=NxHHtjB3UQQ&list=PLg3AZRFBfHLU0QyUzJ5TH1AkXeLIQ_zSm

A free Matlab textbook, Zero to MATLAB, is available here: https://github.com/osuoer/zero-to-matlab/raw/master/Zero%20to%20MATLAB.pdf

Google drive link to all Matlab code: https://drive.google.com/drive/folders/1G2EKVimWhjRacAEMl_K9yMtcvAFf0xkm?usp=sharing

A direct link to the code used in this video is here:
Part110_chap12_then_11.m
https://drive.google.com/file/d/1d2henQNl1O6aFFfYLvuLDUrBJzGZmoc7/view?usp=sharing

Part112_sparse_challenge_exercise.m
https://drive.google.com/file/d/1Gdv5Qr-9nVqKdSUz_-FPYyaXzvhvV3Tp/view?usp=sharing

My science fiction novel Crew of Exiles is available for purchase at any of the following links:
https://www.amazon.com/Crew-Exiles-Neal-Holtschulte-ebook/dp/B0BH5BGGK9/
https://www.barnesandnoble.com/w/crew-of-exiles-neal-holtschulte/1142456965
As an audiobook:
https://www.audiobooks.com/audiobook/crew-of-exiles/706141
https://www.audible.com/pd/Crew-of-Exiles-Audiobook/B0CDQQ7KB1
https://www.kobo.com/us/en/audiobook/crew-of-exiles