Is there a dataset both matlab and VC++ can use?

조회 수: 3 (최근 30일)
C Zeng
C Zeng 2013년 2월 27일
Hello, want to program to store a result to file, which dataset can both Matlab and C++ read?
I know Matlab can save it to .mat file but C++ may not be able to read it.
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 27일
If you want a true database, there is the Database Toolkit.
But if you are talking about .mat files, then
  1. Yes, you can program C++ to read .mat files; but
  2. it is usually easier to transfer the data in binary such as by using fwrite()
  댓글 수: 7
Walter Roberson
Walter Roberson 2013년 3월 3일
So if you address A(I,J) in MATLAB, it would be A[J][I] in C
C Zeng
C Zeng 2013년 3월 7일
Thanks, Walter!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by