Community Profile


Risuna Maluleke

Last seen: 4 mesi ago Active since 2021


  • First Answer

View badges

Content Feed

View by

How do I use an if-else structure inside a for loop to investigate if each component of a row vector is inside or outside the boundaries?
a = 1; b = 10; c = 20; vec = [a, b, c]; for i=1:numel(vec) v=vec(i); if 5<=vec<=15; print("...

4 mesi ago | 0