필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by