One I used JAVA to recode a MATLAB program in order to reduce the runtime. It proved that MATLAB‘s protogenetic functions, such as matrix multiplication, are so much better than mine. Consequently, my code is nothing.
By the way, there was an error confusing me for a whole day. The complier MyEclipse told me the error occurs at xxth line which said two matrixs‘s sizes are not appropriate for multiplication.
Solution: I checked the MATLAB code carefully and then made sure that my code is a right replica. Then I made the console print the size of the two matrixs, finding nothing. Next, I doubted my input data is wrong so that I referred to my senior for new right data. It didn‘t work either. However, I found the number of the first matrix‘s columns is always ten times the number of second matrix‘s rows.
Cause:
----------------------------------------------------------------
c=[a b];
c=[a
b];
The two syntaxes are totally different. One represents row combination and the other one represents column combination. I thought falsely the second one just has a newline.