How do I create a table from an equation?

조회 수: 11 (최근 30일)
Andrew Olson
Andrew Olson 2015년 7월 10일
답변: Azzi Abdelmalek 2015년 7월 10일
So I have an equation, specifically the equation from a sphere, x^2 + y^2 + z^2 = r^2, and I want it to return a table with all values of x, y, and z on the surface of the sphere when I specify a radius. Is this possible?
Thanks in advance

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 10일
r=10
[x,y,z]=sphere
x=x*r
y=y*r
z=z*r

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by