Community Profile

photo

Abhinav Sharma


Last seen: ungefär 3 år ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


I am trying to find the shortest path possible in an array of numbers using MATLAB and I keep getting "Index in position 1 exceeds array bounds (must not exceed 5).". I tried changing 5 to any other number and it didn't work. Can anyone please help?
a = [1 4; 2 6; 3 8; 4 10; 5 12]; n = 1; image(a); disp(a); iteration = 1; iter = 1; distanceShortest = 100; chosenMatrix ...

ungefär 3 år ago | 1 answer | 0

1

answer