How do I create a table from an equation?

11 visualizaciones (últimos 30 días)
Andrew Olson
Andrew Olson el 10 de Jul. de 2015
Respondida: Azzi Abdelmalek el 10 de Jul. de 2015
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

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Jul. de 2015
r=10
[x,y,z]=sphere
x=x*r
y=y*r
z=z*r

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by