How to get physical parameters using MATLAB