给你个具体例子: 2000年到2010年我的身高数据如下 h=[165 168 172 176 178 179 180 181 182 183]; 则对应的matlab代码是: years=2001:2010;
www.google.com.tw