数学建模社区-数学中国
标题:
求助:为什么不能显示图形?
[打印本页]
作者:
matlab666
时间:
2016-10-13 16:27
标题:
求助:为什么不能显示图形?
想动画显示散列图,却没有显示
: w s5 x+ Y+ }% g% z8 {# M: \
Clear[tt]
; B/ b9 P9 l( Y. m5 a5 V0 f
: @' O( @4 o" [% [" i5 K
tt = {1, 1/2^2, 1/3^2}
4 B8 K) _1 l/ ~; z ~ K
, Y. `! x& u8 U. a2 ?7 C( e
{1,1/4,1/9}
9 B# l5 g" C6 L1 j
6 a* I8 ]9 X8 G+ r- ?
Do[ListPlot[tt = Append[tt, 1/i^2]], {i, 4, 20}]
# K- S8 y; _" h# z$ P: v3 N, z1 L
# H7 W0 b r. Z& T/ {; y. Z$ Q
, F. W* o" ^: Z0 X4 N: v
作者:
matlab666
时间:
2016-11-7 18:15
自己动手,丰衣足食--问题已解决
% q: R# `. f, p' t
Clear[tt];
2 ^, f( R. A! }, P5 f! u! \
tt = {1, 1/2^2, 1/3^2};
; `* c& x/ P; j
Do[tt = Append[tt, N[1/i^2]];
; q+ @+ w% v7 J% |9 n' X
Print[ListPlot[tt, PlotRange -> {0, 1},
; T# |. _9 Z& S# \7 y9 M
PlotStyle -> PointSize[0.02]]], {i, 4, 20}]
3 A) i, D: S1 U
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5