Hi, I am having issues manipulating a matrix. Any help would be much appreciated! Say I have a matrix:
xb =
1.00 2.00 3.00 6.00 5.00 9.00
and another matrix:
cb =
3000.00 4000.00 4000.00 0 0 0
Is there a way to code something that would check to see if a 1 is within the xb matrix, and display the corresponding cell in cb (the same column that one is)?
so for example, since 6 is in the xb matrix above, the program would display 0. Thanks!