Risuna Maluleke
Followers: 0 Following: 0
Feeds
답변 있음
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("...
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("...
2년 초과 전 | 0