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之後數
相關文章
相關標籤/搜索