How to plot square inside sphere?

6 visualizaciones (últimos 30 días)
Kmu
Kmu el 18 de Mzo. de 2015
Comentada: Andrew Newell el 18 de Mzo. de 2015
With reference to figure shown, ; instead of circle, I want to plot * *square on sphere* * . X,Y,Z values of 1 point in sphere coordinate I know. Keeping that point as center I want to plot square. Square size may be anything. But is it possible to plot square on sphere?
Please let me get the solution.. Thank you, in advaance..
  2 comentarios
Roger Stafford
Roger Stafford el 18 de Mzo. de 2015
Only the square's four vertices can lie on the sphere's surface. The four edges are necessarily inside.
Andrew Newell
Andrew Newell el 18 de Mzo. de 2015
There are two parts to this problem - the mathematical one of identifying four vertices on the sphere and the graphical one of plotting it. Since this forum is for help in MATLAB, you should solve the first part and then we can show you how to plot it.

Iniciar sesión para comentar.

Respuestas (0)

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