Info
この質問は閉じられています。 編集または回答するには再度開いてください。
selecting subsets from mvnpdf
    1 回表示 (過去 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!