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

댓글 수: 1

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

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