フィルターのクリア

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 Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by