Share variable without global

2 ビュー (過去 30 日間)
Igor Arkhandeev
Igor Arkhandeev 2021 年 2 月 8 日
コメント済み: Omar Khalifa 2021 年 2 月 8 日
My problem is follow: I have some complex code where I use more then 1 million factorial function. I have asked this question earlier:
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?

回答 (0 件)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by