how to calculate a combination of multiple arrays
Show older comments
Hi,
I would like to randomly assign a coordinate deriving from 4 different arrays such that:
x1=[-400:15:-15]; y1=[-300:30:-30]; x2=[-385:15:0]; y2=[-270:30:0];
In return I would like to have all possible combinations such AX= [x1,y1,x2,y2]: For example: A1= [-400,-300,-385,-270], A2 = [-385,-370,-270,-240],...AN=[-15,-30,0,0] so that I can randomly assign one of them. Though I am not sure if it is possible??
Thank you in advance,
Nil
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!