MATLAB、Python、vs的数组、指针索引问题

对5x2的MATLAB矩阵: MATLAB可以直接数值索引:b(6)=1;reshape之后再索引结果一样b(6)=1 python要reshape成一维b后,b[6]=6; C:int* p=a[0];p[6]=6; MATLAB和Python都有reshape,但结果不一样,MATLAB以列为主,Python以行为主; Python和C一样不能直接数值索引,但Python reshape之后数
相关文章
相关标签/搜索