problem modifying a dataset array

1 次查看(过去 30 天)
alex monjambo
alex monjambo 2014-9-23
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 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by