| MATLAB Central > MATLAB Newsreader > check if numbers are within range |
|
|
|
a = [3 9; 4 8; 2 6] |
|
Subject: check if numbers are within range From: ImageAnalyst Date: 15 Aug, 2011 22:00:08 Message: 2 of 7 |
|
Before we give hints, are there cases where 1 of the pair is "in" and |
|
No, this is not a homework problem. Just something I thought matlab would have a function for. |
|
more like: find((a(:,1)<b(1)&a(:,2)<b(1)|a(:,1)>b(2)&a(:,2)>b(2))==0)? |
|
Subject: check if numbers are within range From: Bruno Luong Date: 16 Aug, 2011 05:44:13 Message: 5 of 7 |
|
"pr" wrote in message <j2c37g$40p$1@newscl01ah.mathworks.com>... |
|
sorry, b = [1 10; 11 5; 7 9]; and none in 'a' are present. typo. |
|
Subject: check if numbers are within range From: Bruno Luong Date: 16 Aug, 2011 06:44:14 Message: 7 of 7 |
|
"Pr B" <pb2297@columbia.edu> wrote in message <j2d2ru$2he$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
