I installed the version R2015b of Matlab and Simulink + all of the related packages on a 64GB Kingston microSD card on my laptop. The installation took forever, and in order to perform it successfully I had to change the default download directory in the installer script to the microSD-card using the cmd-command: "( location of downloaded MATLAB installer on my system drive)" -downloadFolder "Target folder on the SD-card". This is because my laptop system drive is too small to hold all of the 15GB of MATLAB goodness.
What baffles me is that after the installation my SD-card now has about 2GB of free space left. I thought that MATLAB + Simulink were supposed to take only a maximum of 15GB of space with all of the modules installed. Is this not correct? What could be causing this?
I checked for duplicate files using CCleaner, and the program found huge amounts of very small files that had at least 1 copy of them, but in a different directory. To give you an example, there are 2 copies of zlib1.dll in the \bin and \toolbox subfolders respectively. However, this structuring of the files seems intentional.
The program itself seems to run just fine, at a speed comparable to running it on a laptop that actually has an SSD larger than 32GB as a system drive (like mine does). Is there anything I could do to reduce the installation size on the SD-card without having to download the full software package again? I kind of need the extra space on the SD-card for other uses as well besides just storing a buggy installation of MATLAB.
I'm running Windows 10 Home edition in case that's relevant.
EDIT: The problem seems to have been the default (exFAT) formatting of the drive. Reformatting to NTFS seems to have fixed it, although the installation is still taking ages. That must be because the installation location is essentially on an external drive, so the writing speed is slower.
How big is MATLAB?
Why is my MATLAB R2015b installation 56GB in size?
how much disk space does Matlab R2019a require to build on Linux?
How much disk space do the MATLAB & Simulink products require?
Videos
As you know, matlab deals mainly with matrices. So, the size function gives you the dimension of a matrix depending on how you use it. For example:
1. If you say size(A), it will give you a vector of size 2 of which the first entry is the number of rows in A and the second entry is the number of columns in A.
2. If you call size(A, 1), size will return a scalar equal to the number of rows in A.
3. If you call size(A, 2), size will return a scalar equal to the number of columns in A.
A scalar like scale in your example is considered as a vector of size 1 by 1. So, size(scale, 2) will return 1, I believe.
Hope this clarifies.
The Linear Algebra operations in Matlab/octave by default follow Row-Column order (ie they are row major by default); so if A is a matrix of size 3x2 (3 rows and 2 columns), we can use size to determine the order of matrix/vector
size(A) will return 3 2 (the first entry representing no.of rows & the second one is no.of columns). Similarly,
size(A,1) returns 3 (1 here represents the no. of rows and A has 3 rows)
size(A,2) returns 2 (2 here represents the no. of columns and A has 2 columns)