Accessing data in matfile.
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a matrix called miu. And the size of miu is ::: 262144x1 double
To save the memory purpose I have used:
miu =matfile('miu_64cube_detect256multiply256.mat');
miu.Properties.miu(ind) %% To access the data I have used the line
Error Message: Unrecognized method, property, or field 'miu' for class 'matlab.io.matfile.Properties'.
Can anyone give me some clarification and probable solution regarding this problem?
Thank You....
댓글 수: 4
dpb
2021년 7월 6일
Which doesn't do anything at all with the matfile object to address it and create the problem.
But, you don't address the Properties of the object, but the object itself with the variable name and index -- and, you don't have a LHS to store the result.
miu =matfile('miu_64cube_detect256multiply256.mat');
value=miu.miu(ind); % return on element of variable miu inside the matfile object
채택된 답변
Rishik Ramena
2021년 7월 14일
Yeah, you are intending to address the object itself and not the Properties of the object.
value = miu.miu(ind);
This should be what you wanted to do. For more information on MAT files and their usage, check out this example here.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 C Data and Function Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!