I'm trying to plot the Bivariate Gaussian pdf with zero mean and covariance (6, 2; 2,2), but I'm coming up with a weird error. Here is my code:
mu = 0
covariance = [6 2; 2 2]
norm = normpdf(R,mu,covariance)
But I get this as an error:
Error using normpdf (line 36)
Non-scalar arguments must match in size.
How can I properly plot the pdf with the specified covariance? As a side note, the variable R comes from a earlier established normal variable with mean of 5 and variance of 30 (randn(5, 30))
Thanks for your time and help in advanced! I really appreciate it!