problem modifying a dataset array
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
when i try the code below, i get these errors :
------------------------ERRORS------------------------
Error using dataset/subsasgnParens (line 202) Right hand side must be a dataset array.
Error in dataset/subsasgn (line 79) a = subsasgnParens(a,s,b,creating);
Error in Alex_2 (line 23) COMP(COMP.DY < p1,:) = p1;
-------------------------CODE-------------------------
for x=1 [u,l]=funcf(x) end
p1 = prctile(COMP.DY, [u]) p2 = prctile(COMP.DY, [l])
COMP(COMP.DY < p1,:) = [p1]; COMP(COMP.DY > p2,:) = [p2];
I just want to modify the data in an array if it respects the above condition.
Does anyone have an idea of what i got wrong here please ?
Thanks :) !
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!