i have 4 vectors:
x1 = [-27.445,-26.960,-26.635,-26.431,-26.315];
x2 = [-25.673,-25.497,-25.449,-25.491,-25.593];
x3 = [-29.310,-28.201,-27.240,-26.399,-25.654];
x4 = [-28.761,-27.103,-26.290,-25.605,-25.025];
i have to generate 100 vectors randomly, but according to the probability that x1 has 40% weight, x2 has 30%, x3 has 20% and x4 has 10%.
Can somebody help me how to do this in matlab? Thanks in advance.