MATLAB Answers

0

Access impoint handle data

Asked by Ilan Sinai on 21 Sep 2016
Latest activity Commented on by Walter Roberson
on 29 Sep 2016
Hi, I am using impoint function in matlab to get a point handle. Considering that the handle is just a pointer, how can I access the data itself? where exactly is it saved? p.s I do not want to use get/set, but to get directly to the variable. Thanks, Naama

  0 Comments

Sign in to comment.

Tags

2 Answers

Answer by Walter Roberson
on 21 Sep 2016

You would need to use a mex routine to get at the pointer. You would then have a bunch of work to do to figure out how to interpret the pointer. Work that would be easier if you used the documented mex class routines.
The only public property directly stored for an impoint object is named Deletable . The information returned by getPosition() on the handle is retrieved by running code: there is no direct position data stored in the struct that represents the object. Instead you have to look in the hidden api property at the getPosition member, which is a function handle, and you would use functions() to find the workspace property of that handle, and the first cell entry in that will be a structure that has a position member. To phrase that another way, the actual position is hidden away as a shared variable that is in the workspace of a function handle that is stored as a member of a hidden struct member of the returned handle. And you would have to duplicate all of that chain in mex because you want to get "directly" at the information.

  0 Comments

Sign in to comment.


Answer by shaikh hossain on 29 Sep 2016

I have a shimmer 3D accelerator and software that write x,y,z axis data in excel file.I want to detect, real time activities detection where 128 readings/window (2.56 sec data) and 50% overlap like the dataset for human activity learning.please help me.

  1 Comment

Walter Roberson
on 29 Sep 2016
Please create a new Question for that; it has nothing to do with the current topic.

Sign in to comment.