MATLAB Answers

How to get the address of libpointer?

조회 수: 4(최근 30일)
huachun chen
huachun chen 14 Jan 2020
답변: Steven Lord 14 Jan 2020
I can get the values through the get method.
x=[1 4 5];
xPtr=libpointer('doublePtr',x);
get(xPtr,'value')
How to get the address of libpointer?

  댓글 수: 0

로그인 to comment.

답변(1개)

Steven Lord
Steven Lord 14 Jan 2020
Why do you need or want to get the address?
If you're looking to iterate through the array, just use the + operator as shown by the examples on this documentation page. Using your original example, try:
get(xPtr+1, 'value')

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그

제품


Translated by