How to give frame of video as input argument of a function in matlabfunction block
이전 댓글 표시
Hi everyone! I am using 'from multimedia file' block to read video. The output of this block is a frame which is given to 'matlab function block'.In matlab function block I am giving the name of my function and the input as argument e.g myfunction(w).Now my problem is that I have to give this frame of the video as argument of myfunction().So how should I write this.Please suggest me.
댓글 수: 2
Beenish Mazhar
2012년 9월 28일
Anil Chowdary Tummala
2021년 2월 13일
I am also having the same problem that I have to give this frame of the video as argument of getmyframe().So how should I do this in simulink. Please suggest me.
답변 (1개)
Sumit Tandon
2012년 9월 28일
0 개 추천
If you connect the output of 'From Multimedia File' block to the input of your MYFUNCTION(w) 'MATLAB Function' block, then at every simulation time step, the signal/input W will be a video frame. Do you see anything different? To check, you can turn on Port Dimension and Data Type displays in the Simulink model.
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!