필터 지우기
필터 지우기

Plotting Vector Field for F(x,y,z) = (x+y+z)/(x​^2+y^2+z^2​)^1.5

조회 수: 3 (최근 30일)
Bo-Chang
Bo-Chang 2023년 11월 24일
이동: Walter Roberson 2023년 11월 24일
clear all
[x, y, z] = meshgrid(-50:1:50,-50:1:50,-50:1:50);
i = 1/(x.^2+y.^2+z.^2).^(3/2);
j = 1/(x.^2+y.^2+z.^2).^(3/2);
k = 1/(x.^2+y.^2+z.^2).^(3/2);
quiver3(x,y,z,i,j,k)
Could anyone tell me where is the issue, nothing show up in the figure but no error founded.

채택된 답변

Walter Roberson
Walter Roberson 2023년 11월 24일
이동: Walter Roberson 2023년 11월 24일
clear all
[x, y, z] = meshgrid(-50:1:50,-50:1:50,-50:1:50);
i = 1/(x.^2+y.^2+z.^2).^(3/2);
j = 1/(x.^2+y.^2+z.^2).^(3/2);
k = 1/(x.^2+y.^2+z.^2).^(3/2);
i(~isfinite(i)) = nan;
j(~isfinite(j)) = nan;
k(~isfinite(k)) = nan;
quiver3(x,y,z,i,j,k)

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by