how can we preallocate a 2d array?
13 ビュー (過去 30 日間)
古いコメントを表示
there is a warning in my program, it says that the variable is growing inside a loop. so consider pre allocation for speed
0 件のコメント
回答 (2 件)
José Jines
2023 年 1 月 23 日
Hi,
I am trying to solve this equation:
q_rad_L(i,j)=(ew./(a_g_p+ew-a_g_p).*ew).*thau.*(e_g_p.*T_ini.^4 -a_g_p.*T_iw.^4).*(a_hat./(x(i)-x(i-1)));
I want to solve to some values: i=1:15, j=1:15 into a loop.
I will appreciate for any response.
Josh
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Quadratic Programming and Cone Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!