More specifically a two-holed donut where f(x,y,z) = some c. There is no way to parametrize the variables and, being new to MATLAB, I'm unsure of any other way to plot a surface.

댓글 수: 1

John D'Errico
John D'Errico 2018년 5월 9일
What have you tried? What relationship would you use to describe that surface?

댓글을 달려면 로그인하십시오.

답변 (1개)

John D'Errico
John D'Errico 2018년 5월 9일

0 개 추천

I won't write your code for you. But I must accept that you may not know the existence of tools like fimplicit.
syms x y z
fimplicit3(x^2 + y^2 + z^2 == 1)
the solution is to start reading the help. Do this. Look through what you find.
help specgraph

댓글 수: 2

Joseph Walton
Joseph Walton 2018년 5월 9일
Thank you for this. Currently trying to teach myself this program and have been having trouble going through the manual. The tool 'ezsurf' was the only one I could think of, so I started by defining x and y by using 'ezmesh', then defining z as a function of x and y so that I could do something like ezsurf(x,y,z).
Joseph Walton
Joseph Walton 2018년 5월 9일
'fimplicit3' worked perfectly. Thank you so much!

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2018년 5월 9일

댓글:

2018년 5월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by