How can I use sliceomatic for 3D plots without getting the below errors?

I have trying to use slicematics for a 3D plot, but I keep getting the error below
here is the code.
sliceomatic(double(D))
here is the error below
Error using matlab.graphics.axis.Axes/set
While setting the 'NextPlot' property of 'Axes':
'new' is not a valid value. Use one of these values: 'add' | 'replace' |
'replacechildren' | 'replaceall'.
Error in sliceomaticfigure (line 162)
set(gca,'nextplot','new');
Error in sliceomatic (line 203)
d = sliceomaticfigure(d);

답변 (1개)

DGM
DGM 2022년 6월 20일

0 개 추천

As far as I know, sliceomatic() has been broken for years. As the error says, 'new' is not a valid option for the 'nextplot' property of an axes object. It is in R2009b, but it's not in R2015b. I'm going to assume that this error has existed since R2014b or so, but nailing down the exact change in options would require documentation which no longer exists. Considering when the last update was, I have to assume that the last update was broken in the current version when it was posted.
How can the error be avoided? As far as I know, you either use an older version of MATLAB, or you rewrite sliceomatic() to be compatible with newer versions. The above issue with the 'nextplot' property isn't the only problem. There are multiple comments like this one which attempt to patch the known problems. You'll have to read the comments and debug as necessary. I'm not even sure that any of these recommended edits work, and I'm not sure whether there are new version-dependencies among them.

댓글 수: 2

Is there an alternative to sliceomatic?
There may be, but I'm not familiar with them. I haven't had much need for it in recent years.

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

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

제품

릴리스

R2016a

질문:

2022년 6월 20일

댓글:

DGM
2022년 6월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by