How do I properly insert the units for gravity in the script
How do I properly insert the units for gravity in the script for MATLAB? Because the way I am doing so, is incorrect.
Solution
The way u wrote is wrong because in MATLAB only numerical value should be given to a variable.if there is any extra data that need to be in MATLAB script then use the symbol %,which will comment the statement from where it is placed.
The correct one is
g=9.8 %% m/s^2
