All Questions
5 questions
9
votes
2
answers
3k
views
Generate white noise in 2D
I am trying to generate a random (white noise) signal, as mentioned in the section Frequency Synthesis of Landscapes (and clouds) on this website. The problem I have is that I do not know if ...
1
vote
2
answers
620
views
How to convert from C to Mathematica?
I am trying to understand what is explained in this webpage, in the section entitled "Generating noise with different power spectra laws". After reading that section, I thought I could do it in ...
1
vote
4
answers
522
views
How to update a list in a function in each iteration
There is a list with numbers 1 to 8 ( p1 ) and another list (j) which contains 4 numbers which shows different 4 positions of ...
0
votes
1
answer
149
views
How to put some values from a list into a function in a Do loop
I want to program a code in MATHEMATICA in order to calculate some values in different iteration. For example, assume this list:
list={1,2,3,4,5}
Now assume that ...
1
vote
2
answers
347
views
Avoid making repeated Random Integer in different iterations
Assume following code :
Do[
i1 = RandomInteger[{1, 5}];
i2 = RandomInteger[{1, 5}];
While[i1 == i2, i2 = RandomInteger[{1, 5}]]
, {k, 1, 4}];`
This ...