After evaluating the IVF, I love it and decide to give up the matlab. However, I really need somebody help me to make clear of my questions. One is about matmul(A,B). I define two arrays
real :: A(1,5), B(5,1)
Now if I multiply the array A and the array B by using matmul(A,B), the result will be a array (result array) whose dimension is (1,1). Thus there is only one cell in the result array with a REAL value.
Here is my question. I want to define another real-type variable 'c' and set the value of 'c' equals to the cell value of the result array above. I tried
real :: c=0
However, I get an error message, "error #6366: The shapes of the array expressions do not conform". I know the reason because a real variable can not equal to an array. But my question is how can I do this? I mean when I have a (1,1) array and I want to set the value of the only cell in this array to a real variable, how can I do this?
Thanks very much.