How do I extract elements that are less than 0 or bigger than 0 in a vector?
Hi Everyone,
I'm new here, so i dont know if i written this question under the right subjekt. I will start with saying that I'm sorry for my bad english.
Now to my question:
I'm sitting right now with a projet where i'll try to make a template to calculate some buildning structures. When i Do a bending moment controll i get an array (a vector) which has negative values and positive values in it. How do i in simple way extracting those elemetns which is less than 0 in a own array?
Like if i have a Vector A: [0
10
-5
-3
6]
And i want to extract just the negative values and end up with a vector like this:
[-5
-3]
How do I do?
I have searching in this forum but I haven't found a solution yet.

