How to get the address of libpointer?

2 ビュー (過去 30 日間)
huachun chen
huachun chen 2020 年 1 月 14 日
回答済み: Steven Lord 2020 年 1 月 14 日
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?

回答 (1 件)

Steven Lord
Steven Lord 2020 年 1 月 14 日
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')

カテゴリ

Help Center および File ExchangeCall C from MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by