数学建模社区-数学中国
标题:
求助:为什么不能显示图形?
[打印本页]
作者:
matlab666
时间:
2016-10-13 16:27
标题:
求助:为什么不能显示图形?
想动画显示散列图,却没有显示
' t' e( }% S1 q+ q
Clear[tt]
! v( O1 [: G, m# X0 U/ Z3 y/ x
" x, f& H) f; r3 \6 C
tt = {1, 1/2^2, 1/3^2}
! C/ O4 h: Q- d! h. d# r _ Y
# O8 H# K6 l/ a4 P7 l
{1,1/4,1/9}
+ n7 Z. a2 U! ? g/ {7 }; H: n
8 s3 T, p* _8 X* C
Do[ListPlot[tt = Append[tt, 1/i^2]], {i, 4, 20}]
! k$ m4 M' t( Z% W e
, m5 K/ `# q' h2 Y* `5 o
! c: J' C, {! l0 p- f) H, ^' p: S
作者:
matlab666
时间:
2016-11-7 18:15
自己动手,丰衣足食--问题已解决
8 w4 K+ y( `6 |9 b7 m* c! R- T2 P
Clear[tt];
: V+ @, a( t8 q' f3 l
tt = {1, 1/2^2, 1/3^2};
9 ^ j' T' s6 G; ?
Do[tt = Append[tt, N[1/i^2]];
0 |: u% f% p, C3 C3 t, r
Print[ListPlot[tt, PlotRange -> {0, 1},
# Z7 Q7 x4 f/ K
PlotStyle -> PointSize[0.02]]], {i, 4, 20}]
$ R8 `, @9 J" E* \8 |2 U
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5