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

3 visualizaciones (últimos 30 días)
Shreen El-Sapa
Shreen El-Sapa el 3 de Dic. de 2023
Comentada: Image Analyst el 3 de Dic. de 2023

Respuesta aceptada

Image Analyst
Image Analyst el 3 de Dic. de 2023
Instead of your last line where you called table2array, try this:
T = table(u1', u2', u3', u4', 'VariableNames', {'u1', 'u2', 'u3', 'u4'})
  5 comentarios
Image Analyst
Image Analyst el 3 de Dic. de 2023
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Tables 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!

Translated by