フィルターのクリア

How can you determine if a vector in R3 belongs to a three dimensional region with its conditions?

2 ビュー (過去 30 日間)
For instance v=(1,2,3) satisfices x^2 + y^2 + z^2 < 1?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2018 年 5 月 20 日
編集済み: Ameer Hamza 2018 年 5 月 20 日
You can use this condition
sum(v.^2) < 1
It will return either true or false
  5 件のコメント
Jan
Jan 2018 年 5 月 20 日
@John: What you have posted is valid code already:
(x-x_0)^2 + (y-y_0)^2 + (z-z_0)^2 < 1
All you have to do is to replace "x" by "v(1)", "y" by "v(2)" and the same for "z".

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by