Hi,
The "modalfit" function from the documentation example uses the below syntax.
[fn,dr,ms] = modalfit(___)
Where fn are the natural frequencies (in Hz), dr are the corresponding damping coefficients, and ms are the normalized residuals as column vectors (one column for each natural frequency. The "modalfit" function can work with different types of system outputs, not just displacement. It is capable of handling systems where the output is acceleration, velocity, or displacement.
You can visit the below documentation for more information on the "modalfit" function.
I hope this helps to resolve your query and proceed further.