How can I extract the values from a 5000x2 matrix?
2 views (last 30 days)
Show older comments
how can I extract the values from a 5000x2 matrix ( X and Y values) where the pairs of X and Y is (<-,-1) U (1, ->). So that I can a vector with the X values where the properties are fullfilled and a vector with the Y values where the properties are fullfilled.
clear;
clc;
rng(6039);
mu = 0;
sigma = 1;
n = 5000;
Xsim = normrnd(mu, sigma, n);
Ysim = normrnd(mu, sigma, n);
X = Xsim(:,1);
Y = Ysim(:,1);
XY = [X Y];
2 Comments
madhan ravi
on 19 Nov 2018
If you close the question will be deleted after 10 days so the effort of the answerer becomes useless , keep in mind
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating 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!