| 10 | 1/1 | 返回列表 |
| 查看: 1242 | 回復(fù): 9 | ||
wangjianbomake金蟲 (正式寫手)
|
[交流]
【求助】10金幣請(qǐng)幫忙修改一下MATLAB程序 已有4人參與
|
至尊木蟲 (正式寫手)

鐵桿木蟲 (著名寫手)
愚鈍

|
>> clf; >> axis([0 10 0 10]); >> hold on >> x=[]; >> y=[]; >> n=0; >> disp('Left mouse button picks points.') Left mouse button picks points. >> disp('Right mouse button picks last point.'); Right mouse button picks last point. >> but=1; >> while but ==1 [xi,yi,but]=ginput(1); plot(xi,yi,'ro'); n=n+1; x(n,1)=xi; y(n,1)=yi; end >> t=1:n; >> ts=1:0.1:n; >> xs=spline(t,x,ts); >> ys=spline(t,y,ts); >> plot(xs,ys,'k-');hold off; >> |
| 格式問題 |
至尊木蟲 (正式寫手)
|
R2010a 完整程序 clf; axis([0 10 0 10]); hold on x=[]; y=[]; n=0; disp('Left mouse button picks points.') disp('Right mouse button picks last point.') but=1; while but ==1 [xi,yi,but]=ginput(1); plot(xi,yi,'ro') n=n+1;x(n,1)=xi;y(n,1)=yi; end t=1:n; ts=1:0.1:n; xs=spline(t,x,ts); ys=spline(t,y,ts); plot(xs,ys,'k-'); hold off; [ Last edited by rewind on 2010-5-9 at 14:35 ] |

金蟲 (正式寫手)
至尊木蟲 (正式寫手)

| 10 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 288求調(diào)劑 +5 | 于海海海海 2026-03-19 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 294求調(diào)劑材料與化工專碩 +9 | 陌の森林 2026-03-18 | 9/450 |
|
|
[考研] 一志愿西安交通大學(xué)材料工程專業(yè) 282分求調(diào)劑 +5 | 楓橋ZL 2026-03-18 | 5/250 |
|
|
[考研] 085600材料與化工調(diào)劑 324分 +9 | llllkkkhh 2026-03-18 | 9/450 |
|
|
[考研] 085410人工智能專碩317求調(diào)劑(0854都可以) +3 | xbxudjdn 2026-03-18 | 3/150 |
|
|
[考研] 【同濟(jì)軟件】軟件(085405)考研求調(diào)劑 +3 | 2026eternal 2026-03-18 | 3/150 |
|
|
[考研] 302求調(diào)劑 +10 | 呼呼呼。。。。 2026-03-17 | 10/500 |
|
|
[考研] 299求調(diào)劑 +5 | △小透明* 2026-03-17 | 5/250 |
|
|
[考研] 工科材料085601 279求調(diào)劑 +6 | 困于星晨 2026-03-17 | 6/300 |
|
|
[考研] 生物學(xué)071000 329分求調(diào)劑 +3 | 我愛生物生物愛?/a> 2026-03-17 | 3/150 |
|
|
[考研] 085600材料與化工求調(diào)劑 +5 | 緒幸與子 2026-03-17 | 5/250 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研] 考研調(diào)劑 +3 | 淇ya_~ 2026-03-17 | 5/250 |
|
|
[考研] 321求調(diào)劑 +5 | 大米飯! 2026-03-15 | 5/250 |
|
|
[考研] 中科院材料273求調(diào)劑 +4 | yzydy 2026-03-15 | 4/200 |
|
|
[考研] 一志愿華中師范071000,325求調(diào)劑 +6 | RuitingC 2026-03-12 | 6/300 |
|
|
[考研] 求材料調(diào)劑 085600英一數(shù)二總分302 前三科235 精通機(jī)器學(xué)習(xí) 一志愿哈工大 +4 | 林yaxin 2026-03-12 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | 程雨杭 2026-03-12 | 3/150 |
|
|
[考研] 328化工專碩求調(diào)劑 +4 | 。,。,。,。i 2026-03-12 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | 152697 2026-03-12 | 4/200 |
|