用matlab画分段函数曲面图,可以先自定义分段函数p=func(x1,x2),再用meshgrid()函数将x1,x2网格化,再求出p值,最后用mesh(x1,x2,p)命令绘出其曲面图。编程后运行可达到如下图形。
Here are the RGB triplets and hexadecimal color codes for the default colors MATLAB uses in many types of plots. RGB TripletHexadecimal Color CodeAppearance [0 0.4470 0.7410]"#0072BD" [0.8500 0.3250 0.0980]"#D95319" [0.9290 0.6940 0.1250]"#EDB120" ...