Assume I have matrix A and B defined below, and I want to gain matrix C; consists of elements of matrix B divided by sum of elements of matrix B.
Given that my real matrices are a lot larger than this example, how can I make matrix C without having to have to do it one by one?
Code:
matrix A=(1\2\3\4) matrix B=(7,8) matrix C=(7/(1+2), 8/(3+4))
Emma
0 Response to Matrix operations
Post a Comment