Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do you find the distance of an assigned coordinate to the centre?

1 回表示 (過去 30 日間)
reuben crockett
reuben crockett 2016 年 3 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
x(i)= rand(n1,n2);
if I have assigned a point such as above for x(i) how would I find the the distance from x(i) to the centre.
TIA
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 12 日
What center?
Image Analyst
Image Analyst 2016 年 3 月 12 日
You can't do that. x(i) has to be a single number, not an n1 by n2 array. And are you really saying that you don't know how to use the sqrt() function to computer the Euclidean distance with the Pythagorean Theorem or hypot()??????

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by