求 下面的运算怎么改成矩阵运算。
Afficher commentaires plus anciens
ind=1;
for i=1:numel(xm1)
for j=1:numel(ym1)
amp_t(ind,:)=[xm1(i) ym1(j) ampaxyl1(j,i)];
ind=ind+1;
end
end
想实现的功能就是给一个空矩阵赋值 ,但是由于规模很大,非常耗时 numel(xm1)=numel(ym1)=1024
所以想请问一下怎么改写成矩阵运算?提升速度
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB 快速入门 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!