필터 지우기
필터 지우기

How to solve this equations for alfa and beta ?

조회 수: 2 (최근 30일)
TARIK YAMAN
TARIK YAMAN 2020년 8월 31일
clc;
clear;
syms r alfa beta x0 y0 z0 x1 y1 z1
dist(alfa,beta) = norm(([x0 - r*(sin(alfa))*(cos(beta)),y0 - r*(sin(alfa))*(sin(beta)),z0 - r*(cos(alfa))] - [x1,y1,z1]));
D(alfa,beta) = diff(dist,alfa,2)*diff(dist,beta,2) - (diff(diff(dist,alfa),beta))^2;
[ALFA_MAX,BETA_MAX] = solve(D > 0, dist(alfa,beta) < 0,alfa,beta);
[ALFA_MIN,BETA_MIN] = solve(D > 0, dist(alfa,beta) > 0,alfa,beta);
[ALFA_SAD,BETA_SAD] = solve(D < 0,alfa,beta);
[ALFA_NAN,BETA_NAN] = solve(D == 0,alfa,beta);
Hi, I want solve distance equation of between any points and any point on sphere for alfa and beta. I have get distance equation and apply second derivation test but i can not any solution.
(x1,y1,z1) : coordinates of any points.
(x0,y0,z0) : center point of sphere.
alfa : angle between z axis or parallel line passes through (x0,y0,z0) and radius.
beta : angle between radius and xy-plane.
r : radius.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by