Filter löschen
Filter löschen

Am I doing something wrong in cody submission?

1 Ansicht (letzte 30 Tage)
ANKUR KUMAR
ANKUR KUMAR am 5 Okt. 2018
Kommentiert: ANKUR KUMAR am 5 Okt. 2018
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.

Akzeptierte Antwort

Stephen23
Stephen23 am 5 Okt. 2018
Bearbeitet: Stephen23 am 5 Okt. 2018
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 Kommentare
Stephen23
Stephen23 am 5 Okt. 2018
Bearbeitet: Stephen23 am 5 Okt. 2018
Remove the conjugate transpose and the superfluous square brackets.
ANKUR KUMAR
ANKUR KUMAR am 5 Okt. 2018
Thank you. Still doing silly mistakes.. at learning stage.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by