필터 지우기
필터 지우기

Fill a column of a table with a series

조회 수: 6 (최근 30일)
Cristian Martin
Cristian Martin 2022년 5월 30일
댓글: Cristian Martin 2022년 5월 30일
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

채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 30일
tableData.tableDatanew1 = (1:height(tableData)).';

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by