MATLAB Answers

How to change the averaging for a plot?

13 ビュー (過去 30 日間)
Helma Heidari
Helma Heidari 2020 年 3 月 10 日 18:39
Hi,
I have imaging data that to calculate the signal intensity we do 4 averaging for each RF pulse frequency.Now I want to change my average to 2,although it calculates 4 averaging but I need to use the last 2 for my plot.I really appreciate any help.here is part of the code.The plot is figure 180.
for roiroi = 1:roiNumber
figure(11);
hold on;
[x, y, BW1, xi, yi] = roipoly;
plot(xi,yi);
for iii=1:slicenumber1
vv = finaldata_moh(:,:,iii) .* BW1;
vvv1 = vv(vv>0);
mmh(iii) = mean(vvv1);
end
mmh1 = mmh;
mmh1 = mmh1 -min(mmh1(:));
mmh1 = 100*mmh1 ./max(mmh1(:));
mmh5 = mmh1;
imagesNo_sort = sort(imagesNo);
mmh5_sort = sort(mmh5);
figure(180);
plot(imagesNo_sort,mmh5,'s');
xlabel('imagesNo_sort');
ylabel('Signal intensity (%)');
xlim([0 20])
grid on
hold on;
end

  0 件のコメント

サインイン to comment.

回答 (0 件)

サインイン してこの質問に回答します。

タグ


Translated by