Share variable without global
조회 수: 2 (최근 30일)
이전 댓글 표시
My problem is follow: I have some complex code where I use more then 1 million factorial function. I have asked this question earlier: https://www.mathworks.com/matlabcentral/answers/738377-how-to-save-variable-and-use-in-future-code?s_tid=srchtitle.
But it is to slow. My goal is as follows: calculate the factorial from 1 to 100 once and then pass it as a global variable between functions. The problem is that the global variable is very slow. How can this be avoided?
댓글 수: 1
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!