Been at this for a while now. I believe I'm following the instructions, but some how I'm not clearing the module.

1 件のコメント

Shubham Gupta
Shubham Gupta 2019 年 9 月 27 日
Replacing
corners(x);
with the following code in the "Code to call your function" field might work
[top_left,top_right,bottom_left,bottom_right] = corners(x)
Let me know what's the outcome

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

回答 (1 件)

Stephen23
Stephen23 2019 年 9 月 27 日
編集済み: Stephen23 2019 年 9 月 27 日

0 投票

Your indexing assumes that the input matrix has size 2x2.
The assignment does not state that restriction, so you should write your function to work with any input matrix of any-size.
Hint: end

カテゴリ

質問済み:

2019 年 9 月 26 日

編集済み:

2019 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by