photo

Petr


2013년부터 활동

Followers: 0   Following: 0

메시지

Hello, I have a question about MEX and accessing data structures. There is a problem:
I have a matlab structure as follows
d(1).x=uint32([1 2 4]);
d(1).y=single([0.5 0.3 0.1]);
d(2).x=uint32([3 6 9 7 5 6]);
d(2).y=single([0.3 0.6 0.9 1.1 0.3 0.2];
...
d(n).x=uint32(...
d(n).y=single(...

The data structure is huge (~20GB) hence I wan to avoid to make a copy. I am not very familiar with MEX. How can I get pointers to data structure elements?

For instance to
d(2).x(5)
d(2).y(5)
d(1).x(2)
d(1).y(2)

The structure 'd' is in fact an inverted file structure of a sparse matrix and I will need to do some multiplications. Thank you!

통계

MATLAB Answers

1 질문
0 답변

순위
71,312
of 301,067

평판
0

참여
1 질문
0 답변

답변 채택
0.0%

획득한 표
0

순위
 of 21,165

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 172,644

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

Feeds

보기 기준

질문


MEX: pointers to a matlab structure
Hello, I have the following problem. There is a Matlab structure as follows: d(1).x=uint32([1 4 6 7 ]); d(1).y=s...

12년 초과 전 | 답변 수: 1 | 0

1

답변