Does it correct m file

2 ビュー (過去 30 日間)
mohamad almasi
mohamad almasi 2016 年 8 月 2 日
コメント済み: mohamad almasi 2016 年 8 月 2 日
hi i wrote m file for converting the YUY2 to RGB and then extract blue object in image, but unfortunately I get bad error about too many output arguments. please help me how can I solve my mistake
thanks for devote your time for me.

採用された回答

Walter Roberson
Walter Roberson 2016 年 8 月 2 日
Your find_ball_1 function declares that DYRGB is an output, but does not make any assignments to any variable named DYRGB. Perhaps you wanted
function [D, Y, R, G, B] = find_ball_1(DD1);
Note: your find_ball_1 function defines a nested function named find_ball but does not use the function at all. find_ball_1 creates an array named data which by coincidence is the same name as the first argument of find_ball but you do not do anything with data after you construct it.
  1 件のコメント
mohamad almasi
mohamad almasi 2016 年 8 月 2 日
thanks alot Watlter

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by