Info

This question is closed. Reopen it to edit or answer.

How to access the correct index?

1 view (last 30 days)
Kash Costello
Kash Costello on 26 Oct 2018
Closed: Kash Costello on 26 Oct 2018
Hi there!
I attached my code in 1.png. I am having problems with the index. I also attached 2 results. "2.png" (left picture) is the CORRECT result. "3.png" (right picture) is the result I'm getting. You can see that in my result, the first element is -104.4217 but in the correct result, -104.4217 is at the SECOND element. Am I doing something stupid? I'm trying to figure it out but I couldn't seem to find out what is wrong.
Can anyone help me, please?
Thanks!
  2 Comments
Kash Costello
Kash Costello on 26 Oct 2018
Hi! I uploaded it! Thank you!
Kash Costello
Kash Costello on 26 Oct 2018
My apologies. Uploaded!

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!