Undefined operator '+' for input arguments of type 'table'
3 views (last 30 days)
Show older comments
Hello to everybody,
I have a problem with a particular algorithm that performs a multi-objective optimization.
When I try to select a certain number of columns using two parameters in the algorithm this error appears: "Undefined operator '+' for input arguments of type 'table'", but when I try to do the same thing with 2 normal passages on the command window it works.
Could someone help me?
There are some pictures to understand what I mean


Answers (1)
Sebastian Körner
on 26 Sep 2019
try this:
i=V+M+1;
a= table2array(population(:,i))
if all(a(:)==0)
...
end
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!