When writing a script in MATLAB to process a data log where the number of entries (rows) is unknown beforehand, what approach should be adopted?
a) Use a fixed-size array to store data entries
b) Dynamically allocate memory as new entries are encountered
c) Ignore entries beyond a predefined threshold
d) Manually input the number of entries before processing the data