doublefrank 发表于 2010-9-10 20:55:29

如何在图形填充中作剖面线?

如题。
想做出下图样式,剖面线不知道如何做:

qibbxxt 发表于 2010-9-10 22:39:01

本帖最后由 qibbxxt 于 2010-9-10 22:41 编辑


时间仓促,随便写了个例子
核心代码:
clear;clc;close all
x=1:10;
y=;
xx = 0:.25:10;
yy = spline(x,y,xx);
plot(xx,yy)
x0=;
y0=;
hold on
h=fill(x0,y0,'w');
hatch(h,30,,'-',8,2);
附近中式hatch,
来源:http://www.mathworks.com/matlabcentral/fileexchange/2075-hatch-m

doublefrank 发表于 2010-9-11 11:23:06

没想到这么快就回复、解决了,多谢!
收益匪浅!

ppchen2993 发表于 2011-10-22 00:15:26

谢谢,受益匪浅,学会了
页: [1]
查看完整版本: 如何在图形填充中作剖面线?