Transpose matrix and your transposition
이전 댓글 표시
How can I transpose Thais Matrix: Matrix = zeros(3500000,3);
채택된 답변
추가 답변 (2개)
AIRTON
2025년 9월 20일
편집: Walter Roberson
2025년 9월 20일
댓글 수: 3
Chun
2025년 9월 20일
Hi Airto
I believe that both methods have transposed the matrix correctly, and you can use 'b' to continue your work since it has been saved.
This matrix can't be displayed because it has too many elements so that it reach the limit of variable editor.
If you want to check whether the transposition is correct, you might use
size(b)
If you want to see the element in first 10 rows or first 10 columns, you might use
b(:, 1:10)
b(1:10, :)
If you have to check all the elements within it, you might try
writematrix(b, 'filename.csv')%shoule be opened with excel or python
% or
save('filename.mat', 'b', '-v7.3')
However, since the number of elements within the matrix is 3 times 3500000, both documents will be very huge (maybe more than 6GB, I guess). In addition, they might also be hard to open...
AIRTON
2025년 9월 20일
David Goodmanson
2025년 9월 21일
Hi Chun, what you did aided the OP, but there is something going on with the 6GB estimate. A number in double precision has 64 bits, 8 bytes. So the a or b matrix runs to 3.5e6*3*8 = 84MB and should not be leagues larger with different software or platform.
AIRTON
2025년 9월 20일
편집: Walter Roberson
2025년 9월 20일
카테고리
도움말 센터 및 File Exchange에서 Function Creation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!