How can i get table with data of u1,u2,u3,u4?

3 次查看(过去 30 天)

采纳的回答

Image Analyst
Image Analyst 2023-12-3
Instead of your last line where you called table2array, try this:
T = table(u1', u2', u3', u4', 'VariableNames', {'u1', 'u2', 'u3', 'u4'})
  5 个评论
Image Analyst
Image Analyst 2023-12-3
round has an option to round to a certain number of decimal points.
format long g
x = rand(10, 1)
x = 10×1
0.581605172668424 0.756955007866143 0.354740429451356 0.149793736097135 0.733672639886283 0.581139548041822 0.00520451816870482 0.943821381021493 0.456592241491234 0.659221182203463
%Number of digits after the decimal
N = 5;
y = round(x, 5)
y = 10×1
0.58161 0.75696 0.35474 0.14979 0.73367 0.58114 0.0052 0.94382 0.45659 0.65922

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by