Borrar filtros
Borrar filtros

Fill a column of a table with a series

6 visualizaciones (últimos 30 días)
Cristian Martin
Cristian Martin el 30 de Mayo de 2022
Comentada: Cristian Martin el 30 de Mayo de 2022
Hi,
I have first column vector of a table with numbers like the bellow. how can i modify the column vector to make it from 1 to 9?
table = readtable('prices.xlsx');
tableData = table(:,1);
tableDatanew1
_____________
1
2
3
4
5
6
1
2
3

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Mayo de 2022
tableData.tableDatanew1 = (1:height(tableData)).';

Más respuestas (0)

Categorías

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

Productos


Versión

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by