Too many output argument
古いコメントを表示
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?
9 件のコメント
Walter Roberson
2019 年 7 月 4 日
Please post the complete error message
Alex Mcaulley
2019 年 7 月 4 日
This code works:

Walter Roberson
2019 年 7 月 4 日
I suspect that the poster has shadowed a function. The complete error message would help us track it down.
Yash Mistry
2019 年 7 月 4 日
編集済み: Yash Mistry
2019 年 7 月 4 日
Walter Roberson
2019 年 7 月 4 日
Using
dbstop if warning
might help you track down the problem.
Yash Mistry
2019 年 7 月 5 日
編集済み: Yash Mistry
2019 年 7 月 5 日
Walter Roberson
2019 年 7 月 5 日
What happened when you tried the dbstop if warning ?
Yash Mistry
2019 年 7 月 5 日
Walter Roberson
2019 年 7 月 5 日
At that point it would be useful to see the contents of the stack variable.
回答 (1 件)
SaiDileep Kola
2019 年 7 月 19 日
0 投票
fimplicit3(@(x,y,z) sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x))
Hi,
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
2 件のコメント
Walter Roberson
2019 年 7 月 19 日
The warnings the user was getting suggests there is some shadowed function or a corrupt MATLAB installation. They were already doing the fimplicit3.
madhan ravi
2019 年 7 月 19 日
Second sir Walter’s comment.
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!