I am supposed to create a 10x10 matrix an then Extract all 30<=aij<=50 in a vector b....that is find all elements that are between 30 and 50 and put them in a vector b.
I started like this below but it doesn't find the elements between 30 and 50.
"iBlastWeb " <rada25krish@yahoo.co.uk> wrote in message <helg6b$l7h$1@fred.mathworks.com>...
> I am supposed to create a 10x10 matrix an then Extract all 30<=aij<=50 in a vector b....that is find all elements that are between 30 and 50 and put them in a vector b.
>
> I started like this below but it doesn't find the elements between 30 and 50.
>
> A=100*rand(10);
> A=fix(A)
> x=find(30<=A<=50)