フィルターのクリア

I can create an identity matrix simulating the union of two points? starting from its coordinates

1 回表示 (過去 30 日間)
i really need creatis this array in direction of two points, why? because i wanna detect with another array (a plane of a floor) where the walls looks like ones, if i compare this arrays element by element i will know how many walls are there between this points.
If you know another way to do the same, works too
  2 件のコメント
KSSV
KSSV 2022 年 6 月 6 日
Question is not clear. Can you show us your data or clearly explain what you want with an example.
Erick Guzman
Erick Guzman 2022 年 6 月 6 日
we got this:
the plane its an binary array, then i want to know how many walls are there betwens two points, or anoher case there is no walls.
I was thinking create an identity array with the path between two points something like this:
00001
00010
00100
01000
10000
After that compare element by element with the array of the planeand where the susbtract equals 0 its because the path goes through a wall or more.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by