negative positive sign matrix B need to follow matrix A
1 view (last 30 days)
Dear all experts.
After all I got A=[ -1 3 -2 4 6]. For A, the value is not important. But the negative or positive sign is very important here. And also I have B=[2.1 2.2 4.2 4.5 5.8], the value of B are all positive . B value is very important because I need to get the sum of B. But before that, B need to follow negative sign as A. Therefore B become B=[-2.1 2.2 -4.2 4.5 5.8] before I want to sum it up. Really need help from all experts. Thank you in advance.