How to add 'NaN' at the beginning of a table?

1 visualización (últimos 30 días)
Pawel Kaszynski
Pawel Kaszynski el 20 de Feb. de 2022
Respondida: Voss el 20 de Feb. de 2022
How to add 'NaN' at the beginning of a table (on top of 0.0094065)?
FO
__________
0.0094065
0.039276
0.019509
0.039404
0.058853
-0.064627
0.030579
-0.031437

Respuesta aceptada

Voss
Voss el 20 de Feb. de 2022
Here's one way:
t = table(randn(8,1),'VariableNames',{'F0'})
t = 8×1 table
F0 ________ 0.031008 -1.6363 0.25468 -0.62168 0.74535 -3.639 1.8741 -0.99434
t = [table(NaN,'VariableNames',{'F0'}); t]
t = 9×1 table
F0 ________ NaN 0.031008 -1.6363 0.25468 -0.62168 0.74535 -3.639 1.8741 -0.99434

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by