# 留言板

1049089365 2016-5-15 17:55

xjiop 2016-5-11 16:16

(出处: MATLAB中文论坛)
bingfeng1 2016-5-3 16:52

zdrk20137750 2016-4-15 00:30

Youcan'tseeme 2016-4-13 17:57

peggyxxp 2016-4-13 15:36

guangming09 2016-4-4 21:56

tuibian 2016-3-23 19:31

TT122496 2016-3-10 16:01

124564 2016-3-4 19:40

HLing 2016-3-1 10:38

function [out] = getStatistics2(D)
D = double(D);
% out.MAX = max(D);%maxmum
% out.MIN = min(D);%minimum
out.MEA = mean(D);%mean
out.MED = median(D);%median
out.RAN = max(D)  - min(D);%range
out.RMS = rms(D);%root mean square
out.STD = std(D);%stardard deviation
out.VAR= var(D);%variance

[m,n]=size(data);
figure(1)
xxi=linspace(1,n,n);
yyi=linspace(1,m,m);
[xxi,yyi]=meshgrid(xxi,yyi); %网格化x，y
zzi=data();
contourf(xxi,yyi,zzi,10) %contourf是填充二维等高线图
% caxis([-0.8,0.8])
colorbar
% title('原始数据');%原始数据，归一化数据，去噪处理
% axis([0,350,1,20]);
% xlabel('扫查长度(mm)'); ylabel('深度（mm）');

sunran1004 2016-2-14 12:11

wld506 2016-1-19 10:50

clc; clear all; close all;
h = fspecial('gaussian', [50 50], 2); % 高斯模板
I1 = imfilter(I, h, 'replicate'); % 按照指定模板做滤波
figure;
subplot(1, 2, 1); imshow(I, []); title('原图像');
subplot(1, 2, 2); imshow(I1, []); title('高斯模糊图像');
bjj28 2015-12-16 17:21

gongwiththewind 2015-12-11 08:49

clc;
clear;
c=340;
rho0=1.21;
t0=5;
width=10;

dr=0.1;
dth=2*pi/100;
[r,th]=meshgrid(0:dr:10,0:dth:2*pi);
[x,y]=pol2cart(r,th);

rdim=length(r(:,1));
thdim=length(th(:,1));
p = zeros(rdim,thdim);
ur = zeros(rdim,thdim-1);
uth = zeros(rdim-1,thdim);

dt  = 1/(sqrt((1/dr)^2+(2/dr/dth)^2)*c);
for n=1:200
ur=ur+dt/rho0*(p(:,1:end-1)-p(:,2:end))/(dt*1i*dth);
uth=uth+dt/rho0/dr*(p(2:end,:)-p(1:end-1,:));
p=p+dt*rho0*c^2*(([zeros(thdim,1) ur]-[ur zeros(thdim,1)])/1i/dr/dth+([zeros(1,rdim); uth] - [uth; zeros(1,rdim)])/1i/dr);

p(ceil(rdim/2),ceil(thdim/2)) = exp(-.5 * ((n-t0)/width).^2);
%%visualization

surf(x,y,p)
end

## 站长推荐 /2

GMT+8, 2017-1-19 06:11 , Processed in 0.061070 second(s), 17 queries , Xcache On.