I have a few questions and problems here: I don't know how to write a for loop and create an array that store the values calculated from the modified Beer-Lambert law. I am also not sure what equations are to be included in the argument of DSolve[].
I have attached screenshots of my Matlab code, and my Mathematica file (codes are rather messy as this is my first time using it). My Mathematica code does not run...





Attachments: