Hello all,
I would like to know how to add the elements in vector vec1 to the elements in vec2. For instance: vec1(0) = [2,4,6] and vec2(0) = [1,3,5]. I need to extract the 2 and the 1 and add them together, then the 4 and the 3 and so on. Someone advised me to use a vector of vectors and that was cool but I'm still trying to figure that one out too. Thanks in advance for to anyone for any comments suggestions or code. I super appreciate it.
I would like to know how to add the elements in vector vec1 to the elements in vec2. For instance: vec1(0) = [2,4,6] and vec2(0) = [1,3,5]. I need to extract the 2 and the 1 and add them together, then the 4 and the 3 and so on. Someone advised me to use a vector of vectors and that was cool but I'm still trying to figure that one out too. Thanks in advance for to anyone for any comments suggestions or code. I super appreciate it.