Trying to isolate a range in an array. It is going wrong. This should be simple, so I decided to test a simple example.
a = [1 4 6 8 99 255 4000]
7 numbers. Let's say we want to see which ones lie within a range.
I'd have thought
range=find(4<a<=120)
would find the values 6, 8 and 99 for me, and output their positions in the array i.e.
range = 3 4 5
And I could then call those values up by typing
a(range)
What I get is
range =
1 2 3 4 5 6 7
Since when were 255 and 4000 less than 120??
The same thing is happening in the real application.
What on Earth am I doing wrong?!
no bother - a good way of finding things is to try and phrase your quesiton in a few words then type them into google along with the word 'matlab'. there are loads of help forums out there and chances are someone else had asked the same question at some point. Or ofcourse post on here, as there are plenty of us looking at climbing forums rather than working......
Press Release Arc'teryx Alpine Academy returns to Chamonix-Mont-Blanc - July 4 – July 7, 2024
Fri Night Vid Ethan Pringle on Portugal's Hardest Sport Climb
In this week's Friday Night Video, we follow Ethan Pringle to the 'not-yet-popular' but world-class sport crag of Meio Mango in Portugal. In the film, Ethan attempts one of the country's hardest lines, Filipinos, which was first bolted...
Article Will Perrin - A Child of Light
Gear News MPOWERD Luci Site Lights – Innovative "Stake" Lights.