Delete row from dataset array
4 views (last 30 days)
Show older comments
I have a dataset array of strings and doubles, and I would like to delete the first row(completly), I mean the 2nd row will pass to be the 1st and so on... for now I tried deleting the content but the row is still there and Im having indexing problems afterwards:
test{1,i}=[]; %%test is the dataset array and i the index to pass throught all cells
Thanks in advance,
2 Comments
Accepted Answer
More Answers (1)
kjetil87
on 26 Jul 2013
test=cell(3,1);
test{1}='row1';
test{2}='row2';
test{3}='row3';
%remove a row:
test={test{2:end,:}}.';
2 Comments
See Also
Categories
Find more on Hypothesis Tests in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!