about global in matlab# Computation - 科学计算
m*i
1 楼
I use the profile commands to track my program, to my surprise I found that
the
line that "global a b c" takes a lot of time.
My a b c are cell arries. Is that the reason? Are there other ways that I can
share some variables among functions (Basically, I just want to initilize a,
b, c at the very beginning of the simulation, and use them later. Will
save/load be better?)
the
line that "global a b c" takes a lot of time.
My a b c are cell arries. Is that the reason? Are there other ways that I can
share some variables among functions (Basically, I just want to initilize a,
b, c at the very beginning of the simulation, and use them later. Will
save/load be better?)