No appropriate method, property, or field 'data' for class 'matlabsha​red.scopes​.UnifiedSc​ope'.

I am having trouble with my code on the new 2016 release on my personal computer, whereas my code on an older version at my lab works fine.
The error message is as such: No appropriate method, property, or field 'data' for class 'matlabshared.scopes.UnifiedScope'.
This displays after trying to access the current frame from a movie loaded through the function implay:
fig=implay('movie.mp4');
CurrentFrameNumber = fig.data.Controls.CurrentFrame;
Does anyone have any solutions for this?
Again, this code works on an older release of MATLAB.

댓글 수: 2

Maybe a bit late considering the posted date.
Could it be that the argument is Data with a D capital instead of data with a small d? This has changed for the database toolbox from "data" to "Data"
Unfortunately, no, there is no data or Data field for uiscope objects.

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

답변 (1개)

implay has no documented return value. It does, however, currently return a uiscope.
I find in practice that you can use currently
fig.Visual.Image.CData

댓글 수: 2

Unfortunately for any others with this problem, this alteration did not do the trick for me.
I ended up simply doing the necessary analysis with the same code on a different computer and version of MATLAB. Not the ideal solution, but it worked.
In any case, thank you for your answer, Walter.
I re-confirm fig.Visual.Image.CData in R2017b. If it does not work for you then please indicate which MATLAB release you are using.

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

카테고리

도움말 센터File Exchange에서 Downloads에 대해 자세히 알아보기

질문:

EJM
2016년 6월 21일

댓글:

2018년 1월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by