The food pellets also have color additives that help give the farm raised salmon the nice pinkish color weâre all accustomed to. Otherwise, theyâd be a dullish grey color*. *Wild salmon, by contrast, obtain their pink hue from their natural environment by feasting on a diet of krill, which eats red algae. 7.
Generate random numbers with a given distribution. The rand function in MATLAB returns uniformly distributed pseudorandom values from the open interval (0, 1), but we often need random numbers of other kind of distributions. A great article written by John S. Denker explains a method of generating random numbers with arbitrary distribution.
2.2 Sparse matrices and vectors. 2.3 Range operators. 2.4 Grid operators. 2.5 Size and shape operators. 2.6 Special matrices. Matlab thinks in vector's and matrices, and it is most efficient if Matlab users treat every variable as a vector or a matrix. I will followup on this latter. We will start by defining some vectors and some matrices. To practice these commands, either cut and paste or type something similar in you Matlab window.