How to change the averaging for a plot?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Thermal Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!