Info
此问题已关闭。 请重新打开它进行编辑或回答。
selecting subsets from mvnpdf
2 次查看(过去 30 天)
显示 更早的评论
Hi all. Matlab is still growing on me, so I might be asking a very simple question. I have a multivariate normal distribution created using mvnpdf. See below.
Sigma1 = [1 0; 0 .5]; mu1=[0 0];
x1 = -4:.1:4; x2 = -4:.1:4;
[X1,X2] = meshgrid(x1,x2);
F1 = mvnpdf([X1(:) X2(:)],mu1,Sigma1);
F2 = reshape(F1,length(x2),length(x1));
Now what I want to do is set a certain range of values to (F(x:x,y:y)=0) and do a convolution with another mvnpdf. Integrating two mvnpdf results is easy since they have the same format, but I'm not sure who to select the range I want since it the output is all rows. Conversely, I can set those values to zero in F2 (after reshape) but then I can't do a convolution with a separate mvnpdf. Clearly, I'm not understanding the output of mvnpdf.
Any help/explanation is greatly appreciated.
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!