Access impoint handle data

조회 수: 2 (최근 30일)
Ilan Sinai
Ilan Sinai 2016년 9월 21일
댓글: Walter Roberson 2016년 9월 29일
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

답변 (2개)

Walter Roberson
Walter Roberson 2016년 9월 21일
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.

shaikh hossain
shaikh hossain 2016년 9월 29일
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
Walter Roberson
Walter Roberson 2016년 9월 29일
Please create a new Question for that; it has nothing to do with the current topic.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Build Interactive Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by