Hey Gurvinder
The width of the table can be changed by adjusting the width of columns based on the maximum length of data it contains. This can be achieved by modifying the 'ColumnWidth' property for each column. You can change the width of columns according to its content by referring to the following article: https://www.mathworks.com/matlabcentral/answers/98616-is-there-an-option-for-the-uitable-object-which-allows-the-width-of-the-columns-to-adjust-according
The 'Position' parameter can also be used along with the 'ColumnWidth' parameter to resize the table columns as done in the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/157249-how-to-change-size-of-uitable