【发布时间】:2013-11-01 10:28:51
【问题描述】:
我想生成介于 0.001 和 0.0015 之间的随机值,这样每次运行 for 循环时,我都会得到一个新值。
例如
value = random number between 0.001 and 0.0015;
for i = 1:10,
for value,
Calculate something...
end
end
谁能告诉我怎么做?
【问题讨论】:
-
看看这个答案stackoverflow.com/a/5289624/252591 - 它是 C++ 但将它移植到 MatLab 应该很容易。