How to resolve error of simulink
2 views (last 30 days)
Show older comments
Hi everyone! I am trying to deal with videos in simulink which are giving me quite tough time. I have read a avi video from 'from multimedia file block'. I want to do some processing on it so I have written a matlab function named as 'vidfunc' for that; in which I am reading every frame comming from multimedia file block and then extracting some area of it.Then I used 'matlab function block' to incorporate that function in my simulink model.Firstly it was giving me error at 'from multimedia file block' that it can't propagate a 3D signal. Then I used 'color space conversion block' just after 'from multimedia file block'. It resolved the problem but now its giving me error 'Unable to determine the file format'& 'Error in 'workonvid/MATLAB Fcn' while evaluating expression: Unable to determine the file format'. any guidance?
2 Comments
Ryan G
on 27 Sep 2012
Is the function being called one that you wrote? If so you may be able to put a breakpoint in it and debug as you would any other function. You need to determine what line of code is giving you the issue for anyone to figure this out.
Given your application a quick google search shows IMREAD gives this error when trying to send in an unsupported file type.
Answers (0)
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!