Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How do you find the distance of an assigned coordinate to the centre?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
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!