Community Profile

photo

Risuna Maluleke


Last seen: 3 mesi ago Active since 2021

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
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("...

3 mesi ago | 0