~1 min read

Categories

Create a 1d pointer which has n elements

<pre>for i = 1:n;
ptr (i) = libpointer('doublePtr',rand(5));
end

if it’s a 2d pointer then use 'doublePtrPtr' Get the value from pointer: value = get(ptr(i),'Value');