How to delete or remove contours from surfc ?

Hello, I'm having difficulties removing the contours from surfc plot. The point is the plot was already created so i cannot change the plot type. I have 100 figures so i want to write a short code that deletes the contours. Thanks,

답변 (1개)

Walter Roberson
Walter Roberson 2013년 4월 23일
편집: Walter Roberson 2013년 4월 23일

0 개 추천

delete() the objects of type 'patch'.
For example,
delete( findobj(gca, 'Type', 'patch') )
If you happen to have the output returned from the surfc() command, you do not need to do the findobj:
h = surfc( rand(20,20) );
then later if you have "h" still available,
delete(h(2:end))

카테고리

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

태그

질문:

Gev
2013년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by