小编mmm*_*mmm的帖子

如何在Matlab中防止物体被凸轮照亮?

[此后有4个片段,其中一个应该只对阅读前两个片段感兴趣.然而,通过复制粘贴所有这些,我应该能够启动我看到的,尽管最后提供了截图.

嗨,通过启动这个main.m:

%To see if plotting a tick after setting camlight headlight will leads to
%its background becoming gray or not
%clear all
figure
arrow = arrow3D([0 0 0], [1 1 1], 'r', 0.8, 0.2, 1.5);
set(arrow, 'EdgeColor', 'interp', 'FaceColor', 'interp');
%camlight headlight %might be interesting to uncomment this line
pause(5)
surfaceHandle = rotateAxisTicks('lol','r',10,-0.3,0.5,0.5,1,1,1,0);
pause(5)
camlight headlight
%material(surfaceHandle,'default') %doesn't work
%surfaceHandle1.FaceLighting = 'none' %doesn't work
Run Code Online (Sandbox Code Playgroud)

,它使用该函数rotateAxisTicks.m

function surfaceHandle = rotateAxisTicks(str,color,fontsize,zmax,graduSpace,boxHeight,perc,labelNumber,axnumber,thetaInput)
%https://stackoverflow.com/questions/9843048/matlab-how-to-plot-a-text-in-3d
    %zmax : give it …
Run Code Online (Sandbox Code Playgroud)

graphics matlab plot shadow light

6
推荐指数
1
解决办法
108
查看次数

标签 统计

graphics ×1

light ×1

matlab ×1

plot ×1

shadow ×1