hi,
how to pre-allocate this:
for ii = 1:numel(L);
for jj=1:numel(L);
for kk=1:45;
c=cross(L1(ii,:),a{jj}(kk,:));
end
end
end

 採用された回答

Stephen23
Stephen23 2020 年 6 月 11 日

0 投票

n = numel(L);
c = cell(n,n,45);
for ii = 1:n
for jj = 1:n
for kk = 1:45
c{ii,jj,kk} = cross(L1(ii,:),a{jj}(kk,:));
end
end
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

タグ

質問済み:

2020 年 6 月 10 日

回答済み:

2020 年 6 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by