How can I create a LaTeX table from a MATLAB uitable

3 views (last 30 days)
I have a uitable, and I want to use it in latex. When I use it as a .fig figure, or .eps figure, the image is not very clear on a pdf document.
I am wondering if there is a way to create a latex table straight from a uitable like the following:
t = uitable('Parent',f,'Data',dat,'ColumnName',cnames,...
'RowName',[],'Position',[50 50 622 385],'ColumnWidth',{50,100,100,50,80,80,80,80});
I know that when you have a matlab ARRAY, the code you can use to convert it to a latex table is
A = [1 2 3; 4 5 6; 7 8 9];
latex_table = latex(sym(A))
however, I am not sure what to use when it is a Matlab uitable. Any suggestion is very appreciated.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!