Fill a column of a table with a series

3 Ansichten (letzte 30 Tage)
Cristian Martin
Cristian Martin am 30 Mai 2022
Kommentiert: Cristian Martin am 30 Mai 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Mai 2022
tableData.tableDatanew1 = (1:height(tableData)).';

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by