Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想写 ALOHA 模拟,但我只绘制这张图片 G=0 1 2 3.我需要添加什么?
using Plots A = [] for G in 0.0:3.0 S = G*ℯ^(-2G) push!(A, S) end println(A) plot(A)
你的代码可以这样写,这是你需要的吗?:
using Plots G=0.0:0.01:3.0 A= G.*ℯ.^(-2G) plot(G,A)
另一种选择是
using Plots plot(x -> x * exp(-2x), 0, 3)
这也给出了