This video demonstrates the array editor feature of the Matlab interface and then walks through the code of a function to convert from binary to decimal. All the code works in Octave. 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
myBin2Dec.m
https://drive.google.com/file/d/1q3ghAU68pfrzdBN6QDSmEzRUuWbBnTV9/view?usp=sharing