writeVideo function not accessible from appdesign (only from script)
1 次查看(过去 30 天)
显示 更早的评论
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-31
One thing I would wonder about is whether the MATLAB path is somehow getting clobbered.
回答(0 个)
另请参阅
类别
在 Help Center 和 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!