A problem with section of code days after entered
1 次查看(过去 30 天)
显示 更早的评论
My code out of nowhere started malfunctioning. I tried everything I could think of. I found an old GUI and it started working making me realize it was the adjustment I made many runs and days ago. To confirm, I took this snippet out of the problematic GUIs and it started working again. Here is the code in question:
axis tight
camlight
shading interp
colormap(jet(256))
I used it after Surf(M) to give my surf plot better visuals and I took this code from a answer I found here on MatAnswers
My question is do I have to worry about this happening in the future now that I have changed the code to:
camlight left;
lighting phong
Has anyone found the code I entered problematic? I am worried because I am about to give this code to someone to use as a new program for them. So I won't be there if it goes wrong again. Thanks.
4 个评论
Walter Roberson
2015-9-4
What should we be looking for to determine whether it is working or broken? is it producing an error message for you? Is the surface disappearing?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!