MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在for循环的向量化中如何使用逆运算符? (https://www.labfans.com/bbs/showthread.php?t=22480)

poster 2019-12-07 01:00

在for循环的向量化中如何使用逆运算符?
 
尺寸为kxnxn的X

Y,尺寸为mxn

然后,

for ii = 1:k Z(ii,:,:) = Y/squeeze(X(ii,:,:)); end 我不知道如何向量化此for循环。当k大时,计算变得昂贵。我觉得应该有一种无需for循环即可处理逆函数的方法。任何帮助表示赞赏。



[url=https://stackoverflow.com/q/59217135]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:11

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.