MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab vs C ++找到等于的Matrix的第一个元素 (https://www.labfans.com/bbs/showthread.php?t=22465)

poster 2019-12-06 16:21

Matlab vs C ++找到等于的Matrix的第一个元素
 
为什么此算法在Matlab中不起作用,而在C ++中却起作用?

int a[3][4] = { {0, 1, 1, 1} , /* initializers for row indexed by 0 */ {1, 0, 0, 0} , /* initializers for row indexed by 1 */ {0, 0, 0, 1} /* initializers for row indexed by 2 */ }; int x,y; for(int i=0;i


所有时间均为北京时间。现在的时间是 23:46

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