MATLAB Answers

### Translated by

このページのコンテンツは英語から自動翻訳されています。自動翻訳をオフにする場合は「<a class="turn_off_mt" href="#">ここ</a>」をクリックしてください。

## find the shortest path

Elysi Cochin

### Elysi Cochin (view profile)

さんによって質問されました 2019 年 4 月 10 日

### Walter Roberson (view profile)

さんによって コメントされました 2019 年 4 月 13 日
Matt J

### Matt J (view profile)

さんの 回答が採用されました
i have 2 set of coordinates S1-S25 (set 1) and D1-D10 (set2)
i have connection between coordinates
my start points are from set1 and destination points from set2
if i select start and destination points, and i can go only through the path that has connection
how to reach destination using the given path, also i need to use shortest path
eg: i need to go from S7 to D8, using the specified path

#### 0 件のコメント

サインイン to comment.

## 3 件の回答

### Matt J (view profile)

2019 年 4 月 10 日
採用された回答

There are a number of implementations of Dijkstra's algorithm on the File Exchange,

#### 0 件のコメント

サインイン to comment.

### Kelly Kearney (view profile)

2019 年 4 月 10 日

Take a look at graph and digraph objects; the shortestpath function provides several different algorithms to calculate this for a given graph.

#### 0 件のコメント

サインイン to comment.

### Image Analyst (view profile)

2019 年 4 月 11 日

See Steve Eddins's blog series on this: MathWorks Image Processing Blog

Walter Roberson

### Walter Roberson (view profile)

2019 年 4 月 12 日
Segmentation does not have to do with shortest path, so this should be in a different Question.
Umar Awan

### Umar Awan (view profile)

2019 年 4 月 13 日
@Image Analyst
Thank You so much, for you help. I have one more question. sir when i extract all words they extrated randomly, i want to extract them in sequence like in image first "Name" then "Muhammad" then "Mughees" then "Raza" and so on.. can you please tell how i do this?
Walter Roberson

### Walter Roberson (view profile)

2019 年 4 月 13 日
Umar Awan:
This Question is about finding shortest path. Asking about optical character recognition is off topic for this Question. You need to start your own Question.

サインイン to comment.

Translated by