How to add +- 10 to particular values randamly
2 次查看(过去 30 天)
显示 更早的评论
Dear all,
lets say I have the value of 1e6 and 5e6. I want to add + or - 10% of this value all the time. I mean
1e6+10%
5e6-10%
1e6-10%
5e6+10%
May be it can be random. Previously I assumed like
(rand(1,11)) + 1e6;
(rand(1,11))+ 5e6;
But it just give like rand numbers of 0.1 to 0.9 but I want in percentage as mentioned abover.
Can someone reply me quickly
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!