Too many output argument

2 views (last 30 days)
Yash Mistry
Yash Mistry on 4 Jul 2019
Commented: madhan ravi on 19 Jul 2019
Hi, I am trying to plot a 3D gyroid using the following code
fimplicit3(@(x,y,z) sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x))
but it shows me too many output argument as the error. Also a bank 3D plot opens up with only X Y Z axis.
Can you help?
Walter Roberson
Walter Roberson on 5 Jul 2019
At that point it would be useful to see the contents of the stack variable.

Sign in to comment.

Answers (1)

SaiDileep Kola
SaiDileep Kola on 19 Jul 2019
fimplicit3(@(x,y,z) sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x))
This function doesn’t show any error and gives as gyroid as shown in figure, store it to a handle as
fh = fimplicit3(@(x,y,z) sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x));
Before doing this clear all variables stored in your workspace, change settings on MATLAB to default
Plot looks like
madhan ravi
madhan ravi on 19 Jul 2019
Second sir Walter’s comment.

Sign in to comment.



Community Treasure Hunt

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

Start Hunting!