数学建模社区-数学中国
标题:
求助:为什么不能显示图形?
[打印本页]
作者:
matlab666
时间:
2016-10-13 16:27
标题:
求助:为什么不能显示图形?
想动画显示散列图,却没有显示
; }7 E) ^" k3 S1 z1 J% k, O/ Z
Clear[tt]
9 B- X4 C+ l1 V; }$ h4 i
' @; E+ y' G! i7 m i( |
tt = {1, 1/2^2, 1/3^2}
- }6 l8 e; N: s j1 f y' S
- q8 n- n- u: k* l
{1,1/4,1/9}
: `5 P/ D2 O6 y8 a
! Y1 U1 s( u7 G, ]
Do[ListPlot[tt = Append[tt, 1/i^2]], {i, 4, 20}]
# n2 }& H$ u+ ?, N) Z, {& K
$ ]% h) Y$ q2 y9 K% k4 N- k9 _+ W
6 y1 c* s5 [: O/ y; l
作者:
matlab666
时间:
2016-11-7 18:15
自己动手,丰衣足食--问题已解决
9 D& O& L+ o5 W M# G4 v* Q5 w
Clear[tt];
3 a1 G* A6 T( g! @5 y5 y
tt = {1, 1/2^2, 1/3^2};
, D9 H% F* Y9 f) k! {7 d" Q
Do[tt = Append[tt, N[1/i^2]];
7 g; B1 a% f0 l, M3 m
Print[ListPlot[tt, PlotRange -> {0, 1},
# m& H. K( f$ ?/ |8 ?1 t" ?9 R
PlotStyle -> PointSize[0.02]]], {i, 4, 20}]
% o. N8 b1 f T1 B
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5