I have a 10 X 10 matrix, A, created in MatLab. All the values in the matrix are between 0 and 100. Say that I want to:
- Replace all elements of A < 10 with zeros
- Replace all elemtns of A > 90 with infinity
- Extract all values between 30 and 50 to a new vector.
Can I do this without writing a script? I can easliy do this through a script with some simple for-loops, but are there any shortcuts available? Any help will be greatly appreciated!