How to delete certain number of rows in each variable contained in a table which is contained in a structure?
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a structure with 5 tables 1300x10
I want to delete first 400 rows from each variable in a table. Can you help please? Using an example of one table, The following gives me error.
cropStart = 400;
Data.Data(3).Dot_Data(:,:,[1:cropStart]) = [];
Subscripting into a table using one subscript (as in t(i)) or three or more subscripts (as in t(i,j,k)) is not supported.
Always specify a row subscript and a variable subscript, as in t(rows,vars).
0 个评论
采纳的回答
Jan
2022-2-18
Would the first 400 rows be:
cropStart = 400;
Data.Data(3).Dot_Data(1:cropStart, :) = [];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!