I need to remove the rows that have same minimum and maximum values , below is the code used .
but it gives error:
Unable to perform assignment because brace indexing is not supported for variables of this type.
Kindly help
m = min([XTrain{:}],[],2);
M = max([XTrain{:}],[],2);
idxConstant = M == m;
for i = 1:numel(XTrain)
XTrain{i}(idxConstant,:) = [];
end
10 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201830
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201830
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201855
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201855
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201920
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201920
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201945
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201945
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201960
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201960
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201985
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1201985
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202015
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202015
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202035
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202035
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202040
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1202040
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1208105
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/691735-to-find-the-rows-of-data-that-have-the-same-minimum-and-maximum-values-and-remove-the-rows#comment_1208105
Sign in to comment.