How can I give different format to each column in a table?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm passing the data from Matlab to TexStudio which this line :
latex_table = latex(vpa(sym(table),6))
I'm getting this result:
\left(\begin{array}{cccccc} 0 & 2.1778\cdot 10^7 & 1.3863 & 0.00265961 & 0.0677634 & 0.000180224\\ 0 & 1.89273\cdot 10^7 & 1.3863 & 0.00271744 & 0.0588933 & 0.000160039\\ 0 & 1.60766\cdot 10^7 & 1.3863 & 0.00278696 & 0.0500232 & 0.000139413\\ 0 & 1.32259\cdot 10^7 & 1.3863 & 0.00287335 & 0.0411531 & 0.000118247\\ 0 & 1.03752\cdot 10^7 & 1.3863 & 0.00298608 & 0.032283 & 0.0000963996 \end{array}\right)
I would like to know how to give diffent format to each column, so no more editing will be performed than the needed. The data should look like in the LaTex code below:
№ & $\bar{x}_t$ & Re,& $\eta_C$ & $C_F$, & \bar{S}$, & $2C_F\bar{S}$, \\
участки & & $10^7$ & & $10^{-3}$ & & $10^{-3}$ \\ \hline
1 & 0 & 2,1745 & 1,3863 & 2,6602 & 0,2709 & 0,7206 \\ \hline
2 & 0 & 1,8894 & 1,3863 & 2,7182 & 0,2355 & 0,6401 \\ \hline
3 & 0 & 1,6043 & 1,3863 & 2,7878 & 0,2000 & 0,5576 \\ \hline
4 & 0 & 1,3193 & 1,3863 & 2,8745 & 0,1645 & 0,4728 \\ \hline
5 & 0 & 1,0342 & 1,3863 & 2,9876 & 0,1297 & 0,3857 \\ \hline
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre LaTeX en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!