Generating a normal distribution to a given distribution
Show older comments
Hi, I am having trouble with this question, can someone help me ASAP.
Generate N = 1000 samples from a standard normal distribution (zero mean, identity covariance) and transform these samples to be distributed as:
X= [x1,x2]T ~ N(μ, Σ), μ=[1,1]T, Σ= 2 -1
-1 1
This asks to plot on matlab. I am new to matlab
3 Comments
John D'Errico
on 10 Sep 2016
If you choose to use arbitrary notation of your own choosing, expect people to have a hard time understanding what you are asking.
For example, what do you mean by this? Is the T supposed to indicate transpose?
[x1,x2]T
Why not simply state that you want to generate vectors of size 2 by 1, thus column vectors?
Anyway, is there a reason not to simply use mvnrnd?
fafz1203
on 10 Sep 2016
fafz1203
on 10 Sep 2016
Answers (0)
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!