I have generated a matrix of an image and im trying to generate the rand function to pick between two specific numbers and not a range of numbers. So lets say I want the third row of the third column to be either 1 or 50, randomly picked. how exactly do i make that pixel be equal to random number equation that i made?
MATLAB: Generate rand of two specific numbers and not a range
imageimage processingMATLABmatrixrandomrandom number generator
Best Answer