필터 지우기
필터 지우기

Am I doing something wrong in cody submission?

조회 수: 1 (최근 30일)
ANKUR KUMAR
ANKUR KUMAR 2018년 10월 5일
댓글: ANKUR KUMAR 2018년 10월 5일
I have solved couple of question on cody and cross checked my prog on matlab which showing exactly the same output which the question in cody needs. But everytime, its showing error in submission. I have attached the sample submission problem.

채택된 답변

Stephen23
Stephen23 2018년 10월 5일
편집: Stephen23 2018년 10월 5일
Your function returns y, which is just the index from sort and has nothing to do with the first column of x.
The code x([y],1) is not allocated to anything, so it will be discarded.
Note that the square brackets around y are totally superfluous:
  댓글 수: 3
Stephen23
Stephen23 2018년 10월 5일
편집: Stephen23 2018년 10월 5일
Remove the conjugate transpose and the superfluous square brackets.
ANKUR KUMAR
ANKUR KUMAR 2018년 10월 5일
Thank you. Still doing silly mistakes.. at learning stage.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by