writeVideo function not accessible from appdesign (only from script)
이전 댓글 표시
Using MATLAB 2018a, I build an appdesign interface that should create a video file.
When I execute the app, the line:
writeVideo(vid,frame);
throws the error: Undefined function or variable 'writeVideo'. However, the very same code, executed outside appdesign (in a script) runs perfectly. I also verified whether writeVideo is accessible from the app by writing
which writeVideo
writeVideo(vid,frame);
which gave me the correct location of the writeVideo method:
/Applications/MATLAB_R2018a.app/toolbox/matlab/audiovideo/@VideoWriter/VideoWriter.m % VideoWriter method
However, the next line still throws the aforementioned error. I cannot get my head around how this could be logically possible.
Many thanks for any ideas!
댓글 수: 6
Walter Roberson
2018년 7월 27일
At the point that the problem occurs, what shows up for
class(vid)
?
Jannis
2018년 7월 27일
Walter Roberson
2018년 7월 28일
In cases like these, I would erase the writeVideo word and type it back in again, just in case I was having difficulty seeing a spelling mistake.
Greg
2018년 7월 30일
Very odd. I have no troubles. After what Walter suggested, does methods(vid) inside the app code list writeVideo as an option?
Walter Roberson
2018년 7월 31일
One thing I would wonder about is whether the MATLAB path is somehow getting clobbered.
Jannis
2018년 7월 31일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!