Extract/read data from a matrix of a specific column that starts from a specific row and reads the rest of the rows below it
68 次查看(过去 30 天)
显示 更早的评论
Hello, I have a matrix of data I imported from excel via the readmatrix() function and I want to extract a variable, lets say the time, but the first 11 rows are data that are not related to the time data. So I want to do something like: time = matrix(11:, 1). Essentially, a column vector that reads from a matrix, starting at row 11 but reads the entire rest of the data in the column. Sorry, this may be a beginner question. Any help is much appreciated!
0 个评论
采纳的回答
Voss
2022-11-14
You've almost got it already.
To include row 11:
time = matrix(11:end,1);
To exclude row 11:
time = matrix(12:end,1);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!