Re: a question about Matlab speed# EE - 电子工程
q*i
1 楼
I don't know if I am right. From my experience, if there are lot of loops in
the matlab code, the execution time will be much longer. I guess this is due
to how matlab processes the variables in the loop. However, if you can find a
way to optimize your code, say, change the computation in the loop to matrix
computaion, it will save you a lot of time. Someone even claims that for
matrix manipulation, matlab is faster than C. Another way to improve the time
efficiency of the matlab code, it's to w
the matlab code, the execution time will be much longer. I guess this is due
to how matlab processes the variables in the loop. However, if you can find a
way to optimize your code, say, change the computation in the loop to matrix
computaion, it will save you a lot of time. Someone even claims that for
matrix manipulation, matlab is faster than C. Another way to improve the time
efficiency of the matlab code, it's to w