亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? crossf.m

?? Cross frecuency relations
?? M
?? 第 1 頁 / 共 5 頁
字號:
end;    if (~isnumeric(g.shuffle))   error('Shuffle argument type must be numeric');end;switch g.memory   case { 'low', 'high' },;   otherwise error('memory must be either ''low'' or ''high''');end;if strcmp(g.memory, 'low') & ~strcmp(g.boottype, 'times')   error(['Bootstrap type ''' g.boottype ''' cannot be used in low memory mode']);end;switch g.compute   case { 'matlab', 'c' },;   otherwise error('compute must be either ''matlab'' or ''c''');end;%%%%%%%%%%%%%%%%%%%%%%%%%%%% Compare 2 conditions %%%%%%%%%%%%%%%%%%%%%%%%%%%if iscell(X)	if length(X) ~= 2 | length(Y) ~= 2		error('crossf: to compare conditions, X and Y input must be 2-elements cell arrays');	end;	if ~strcmp(g.boottype, 'times')		disp('crossf warning: The significance bootstrap type is irrelevant when comparing conditions');	end;	for index = 1:2:length(vararginori)		if index<=length(vararginori) % needed: if elemenets are deleted			%if strcmp(vararginori{index}, 'alpha'), vararginori(index:index+1) = [];			if strcmp(vararginori{index}, 'title'), vararginori(index:index+1) = []; 			end;		end;	end;	if iscell(g.title) 		if length(g.title) <= 2,			g.title{3} = 'Condition 2 - condition 1';		end;	else		g.title = { 'Condition 1', 'Condition 2', 'Condition 2 - condition 1' };	end;		fprintf('Running crossf on condition 1 *********************\n');	fprintf('Note: If an out-of-memory error occurs, try reducing the\n');	fprintf('      number of time points or number of frequencies\n');	if ~strcmp(g.type, 'coher')	   fprintf('Note: Type ''coher'' takes 3 times as much memory as other options!)\n');        end	figure; 	subplot(1,3,1); title(g.title{1});	if ~strcmp(g.type, 'coher')		[R1,mbase,times,freqs,Rbootout1,Rangle1, savecoher1] = crossf(X{1}, Y{1}, ...								frame, tlimits, Fs, varwin, 'savecoher', 1, 'title', ' ',vararginori{:});	else		[R1,mbase,times,freqs,Rbootout1,Rangle1, savecoher1, Tfx1, Tfy1] = crossf(X{1}, Y{1}, ...								frame, tlimits, Fs, varwin, 'savecoher', 1,'title', ' ',vararginori{:});	end;	R1 = R1.*exp(j*Rangle1); % output Rangle is in radians		% Asking user for memory limitations	% if ~strcmp(g.noinput, 'yes')	%	  tmp = whos('Tfx1');	%	  fprintf('This function will require an additional %d bytes, do you wish\n', ...    %     tmp.bytes*6+size(savecoher1,1)*size(savecoher1,2)*g.naccu*8);	%	  res = input('to continue (y/n) (use the ''noinput'' option to disable this message):', 's');	%  	if res == 'n', return; end;	% end;	fprintf('\nRunning crossf on condition 2 *********************\n');	subplot(1,3,2); title(g.title{2});	if ~strcmp(g.type, 'coher')		  [R2,mbase,times,freqs,Rbootout2,Rangle2, savecoher2] = crossf(X{2}, Y{2}, ...								frame, tlimits, Fs, varwin,'savecoher', 1, 'title', ' ',vararginori{:});	else		  [R2,mbase,times,freqs,Rbootout2,Rangle2, savecoher2, Tfx2, Tfy2] = crossf(X{2}, Y{2}, ...								frame, tlimits, Fs, varwin,'savecoher', 1, 'title', ' ',vararginori{:});	end;	R2 = R2.*exp(j*Rangle2); % output Rangle is in radians	subplot(1,3,3); title(g.title{3});	if isnan(g.alpha)		plotall(R2-R1, [], [], times, freqs, mbase,  find(freqs <= g.maxfreq), g);	else 		% accumulate coherence images (all arrays [nb_points * timesout * trials])		% ---------------------------		allsavedcoher = zeros(size(savecoher1,1), ...                          size(savecoher1,2), ...                          size(savecoher1,3)+size(savecoher2,3));		allsavedcoher(:,:,1:size(savecoher1,3))     = savecoher1;		allsavedcoher(:,:,size(savecoher1,3)+1:end) = savecoher2;		clear savecoher1 savecoher2;				if strcmp(g.type, 'coher')			alltfx = zeros(size(Tfx1,1), size(Tfx2,2), size(Tfx1,3)+size(Tfx2,3));			alltfx(:,:,1:size(Tfx1,3))     = Tfx1;			alltfx(:,:,size(Tfx1,3)+1:end) = Tfx2;			clear Tfx1 Tfx2;						alltfy = zeros(size(Tfy1,1), size(Tfy2,2), size(Tfy1,3)+size(Tfy2,3));			alltfy(:,:,1:size(Tfy1,3))   = Tfy1;			alltfy(:,:,size(Tfy1,3)+1:end) = Tfy2;			clear Tfy1 Tfy2;		end;				coherimages = zeros(size(allsavedcoher,1), size(allsavedcoher,2), g.naccu);		cond1trials = length(X{1})/g.frame;		cond2trials = length(X{2})/g.frame;		alltrials = [1:cond1trials+cond2trials];		fprintf('Accumulating bootstrap:');				% preprocess data		% ---------------		switch g.type		 case 'coher', % take the square of alltfx and alltfy		  alltfx = alltfx.^2;		  alltfy = alltfy.^2;		 case 'phasecoher', % normalize		  allsavedcoher = allsavedcoher ./ abs(allsavedcoher);		 case 'phasecoher2', % don't do anything		end;				if strcmp(g.type, 'coher')			[coherdiff coher1 coher2] = coher2conddiff( allsavedcoher, alltrials, ...                                                        cond1trials, g.type, alltfx, alltfy);		else			[coherdiff coher1 coher2] = coher2conddiff( allsavedcoher, alltrials, ...                                                        cond1trials, g.type);		end;		%figure; g.alpha = NaN; & to check that the new images are the same as the original		%subplot(1,3,1); plotall(coher1, [], [], times, freqs, mbase, find(freqs <= g.maxfreq), g);		%subplot(1,3,2); plotall(coher2, [], [], times, freqs, mbase, find(freqs <= g.maxfreq), g);		%return;		for index=1:g.naccu			if rem(index,10) == 0,  fprintf(' %d',index); end			if rem(index,120) == 0, fprintf('\n'); end						if strcmp(g.type, 'coher')				coherimages(:,:,index) = coher2conddiff( allsavedcoher, shuffle(alltrials), ...                                                        cond1trials, g.type, alltfx, alltfy);			else				coherimages(:,:,index) = coher2conddiff( allsavedcoher, shuffle(alltrials), ...                                                        cond1trials, g.type);			end;		end;		fprintf('\n');		% create articially a Bootstrap object to compute significance		Boot = bootinit( [], size(allsavedcoher,1), g.timesout, g.naccu, 0, g.baseboot, ...														'noboottype', g.alpha, g.rboot);		Boot.Coherboot.R = coherimages;		Boot = bootcomppost(Boot, [], [], []);		g.title = '';		plotall(coherdiff, Boot.Coherboot.R, Boot.Rsignif, times, freqs, mbase, ...														find(freqs <= g.maxfreq), g);	end;	return; % ********************************** END PROCESSING TWO CONDITIONSend;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% shuffle trials if necessary%%%%%%%%%%%%%%%%%%%%%%%%%%%%%if g.shuffle ~= 0   fprintf('x and y data trials being shuffled %d times\n',g.shuffle);   XX = reshape(X, 1, frame, length(X)/g.frame);   YY = Y;   X = [];   Y = [];   for index = 1:g.shuffle      XX = shuffle(XX,3);      X = [X XX(:,:)];      Y = [Y YY];   end;end;% detrend over epochs (trials) if requested% -----------------------------------------switch g.detrepcase 'on'   X = reshape(X, g.frame, length(X)/g.frame);   X = X - mean(X,2)*ones(1, length(X(:))/g.frame);   Y = reshape(Y, g.frame, length(Y)/g.frame);   Y = Y - mean(Y,2)*ones(1, length(Y(:))/g.frame);end;        % time limitswintime = 500*g.winsize/g.srate;times = [g.tlimits(1)+wintime:(g.tlimits(2)-g.tlimits(1)-2*wintime)/(g.timesout-1):g.tlimits(2)-wintime];%%%%%%%%%%% baseline%%%%%%%%%%if ~isnan(g.baseline)   baseln = find(times < g.baseline); % subtract means of pre-0 (centered) windows   if isempty(baseln)      baseln = 1:length(times); % use all times as baseline      disp('Bootstrap baseline empty, using the whole epoch.');   end;   baselength = length(baseln);else   baseln = 1:length(times); % use all times as baseline   baselength = length(times); % used for bootstrapend;%%%%%%%%%%%%%%%%%%%%% Initialize objects%%%%%%%%%%%%%%%%%%%%tmpsaveall = (~isnan(g.alpha) & isnan(g.rboot) & strcmp(g.memory, 'high')) ...                 | (strcmp(g.subitc, 'on') & strcmp(g.memory, 'high'));trials = length(X)/g.frame;if ~strcmp(lower(g.compute), 'c')   Tfx = tfinit(X, g.timesout, g.winsize, g.cycles, g.frame, g.padratio, g.detret, ...									g.srate, g.maxfreq, g.subitc, g.type, g.cyclesfact, tmpsaveall);   Tfy = tfinit(Y, g.timesout, g.winsize, g.cycles, g.frame, g.padratio, g.detret, ...									g.srate, g.maxfreq, g.subitc, g.type, g.cyclesfact, tmpsaveall);   Coher     = coherinit(Tfx.nb_points, trials, g.timesout, g.type);   Coherboot = coherinit(Tfx.nb_points, trials, g.naccu   , g.type);   Boot      = bootinit( Coherboot, Tfx.nb_points, g.timesout, g.naccu, baselength, ...									g.baseboot, g.boottype, g.alpha, g.rboot);   freqs = Tfx.freqs;   dispf = find(freqs <= g.maxfreq);   freqs = freqs(dispf);else   freqs = g.srate*g.cycles/g.winsize*[2:2/g.padratio:g.winsize]/2;end;dispf     = find(Tfx.freqs <= g.maxfreq);%-------------% Reserve space%-------------% R  = zeros(tfx.nb_points,g.timesout);       % mean coherence% RR = repmat(nan,tfx.nb_points,g.timesout); % initialize with nans% Rboot = zeros(tfx.nb_points,g.naccu);  % summed bootstrap coher% switch g.type% case 'coher',%    cumulXY = zeros(tfx.nb_points,g.timesout);%    cumulXYboot = zeros(tfx.nb_points,g.naccu);% end;        % if g.bootsub > 0%    Rboottrial = zeros(tfx.nb_points, g.timesout, g.bootsub); % summed bootstrap coher%    cumulXYboottrial = zeros(tfx.nb_points, g.timesout, g.bootsub);% end;% if ~isnan(g.alpha) & isnan(g.rboot)%    tf.tmpalltimes = repmat(nan,tfx.nb_points,g.timesout);% end   % --------------------% Display text to user% --------------------fprintf('\nComputing Event-Related ');switch g.type    case 'phasecoher',  fprintf('Phase Coherence (ITC) images for %d trials.\n',length(X)/g.frame);    case 'phasecoher2', fprintf('Phase Coherence 2 (ITC) images for %d trials.\n',length(X)/g.frame);    case 'coher',       fprintf('Linear Coherence (ITC) images for %d trials.\n',length(X)/g.frame);end;fprintf('The trial latency range is from %4.5g ms before to %4.5g ms after\n     the time-locking event.\n', 1000*g.tlimits(1),1000*g.tlimits(2));fprintf('The frequency range displayed will be %g-%g Hz.\n',min(freqs),g.maxfreq);if ~isnan(g.baseline)   if length(baseln) == length(times)      fprintf('Using the full trial latency range as baseline.\n');   else      fprintf('Using trial latencies from %4.5g ms to %4.5g ms as baseline.\n', 1000*g.tlimits,g.baseline);   end;else    fprintf('No baseline time range was specified.\n');	end;if g.cycles==0   fprintf('The data window size will be %d samples (%g ms).\n',g.winsize,2*wintime);   fprintf('The FFT length will be %d samples\n',g.winsize*g.padratio);else   fprintf('The window size will be %2.3g cycles.\n',g.cycles);   fprintf('The maximum window size will be %d samples (%g ms).\n',g.winsize,2*wintime);endfprintf('The window will be applied %d times\n',g.timesout);fprintf('     with an average step size of %2.2g samples (%2.4g ms).\n', Tfx.stp,1000*Tfx.stp/g.srate);fprintf('Results will be oversampled %d times.\n',g.padratio);if ~isnan(g.alpha)   fprintf('Bootstrap confidence limits will be computed based on alpha = %g\n', g.alpha);else   fprintf('Bootstrap confidence limits will NOT be computed.\n'); endswitch g.plotphasecase 'on',     if strcmp(g.angleunit,'deg')       fprintf(['Coherence angles will be imaged in degrees.\n']);    elseif strcmp(g.angleunit,'rad')       fprintf(['Coherence angles will be imaged in radians.\n']);    elseif strcmp(g.angleunit,'ms')       fprintf(['Coherence angles will be imaged in ms.\n']);    endend;fprintf('\nProcessing trial (of %d): ',trials);% firstboot = 1;% Rn=zeros(trials,g.timesout);% X = X(:)'; % make X and Y column vectors% Y = Y(:)';% tfy = tfx;if strcmp(lower(g.compute), 'c')   % C PART   filename = [ 'tmpcrossf' num2str(round(rand(1)*1000)) ];   f = fopen([ filename '.in'], 'w');   fwrite(f, tmpsaveall, 'int32');   fwrite(f, g.detret, 'int32');   fwrite(f, g.srate, 'int32');   fwrite(f, g.maxfreq, 'int32');   fwrite(f, g.padratio, 'int32');   fwrite(f, g.cycles, 'int32');   fwrite(f, g.winsize, 'int32');   fwrite(f, g.timesout, 'int32');   fwrite(f, g.subitc, 'int32');   fwrite(f, g.type, 'int32');   fwrite(f, trials, 'int32');   fwrite(f, g.naccu, 'int32');   fwrite(f, length(X), 'int32');   fwrite(f, X, 'double');   fwrite(f, Y, 'double');   fclose(f);      command = [ '!cppcrosff ' filename '.in ' filename '.out' ];   eval(command);      f = fopen([ filename '.out'], 'r');   size1 = fread(f, 'int32', 1);   size2 = fread(f, 'int32', 1);   Rreal = fread(f, 'double', [size1 size2]);   Rimg  = fread(f, 'double', [size1 size2]);   Coher.R = Rreal + j*Rimg;   Boot.Coherboot.R = [];   Boot.Rsignif = [];else   % ------------------------   % MATLAB PART

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷综合在线| 国产suv精品一区二区6| 欧美性色黄大片| 亚洲乱码国产乱码精品精可以看| 成人av网址在线观看| 国产精品短视频| 久久久99精品久久| 丁香亚洲综合激情啪啪综合| 最新日韩在线视频| 色吧成人激情小说| 日韩精品色哟哟| 久久免费美女视频| 91免费版在线| 日本亚洲视频在线| 久久久精品日韩欧美| 色综合久久天天| 人人精品人人爱| 亚洲国产精品精华液ab| 欧美视频在线观看一区二区| 日韩激情视频在线观看| 久久综合一区二区| 色偷偷88欧美精品久久久| 日本在线观看不卡视频| 国产精品污污网站在线观看| 欧美中文一区二区三区| 国产主播一区二区三区| 亚洲精品第一国产综合野| 91精品国模一区二区三区| 成人午夜免费电影| 丝袜亚洲另类丝袜在线| 国产女人水真多18毛片18精品视频 | 国产精品乱码一区二区三区软件| 91小视频在线| 精品一区二区三区免费观看| 中文字幕一区二区三中文字幕| 欧美日韩aaa| www.欧美色图| 欧美一区二区三区播放老司机| 一区二区三区四区亚洲| 美女免费视频一区| 欧美高清精品3d| 亚洲成a人v欧美综合天堂下载| 色婷婷av一区二区三区软件| 国产欧美一区二区精品仙草咪| 丝袜美腿一区二区三区| 欧美人伦禁忌dvd放荡欲情| 亚洲成av人片www| 亚洲第一福利视频在线| 久久一二三国产| 欧美精品精品一区| 色哟哟国产精品| 成人激情电影免费在线观看| 韩国av一区二区三区四区 | 91浏览器在线视频| 国产一区二区在线看| 香蕉成人伊视频在线观看| 成人免费在线视频观看| 国产日产欧美一区| 久久久久久久性| 精品毛片乱码1区2区3区| 欧美日韩精品一区二区三区蜜桃| av一二三不卡影片| 丰满白嫩尤物一区二区| 国产酒店精品激情| 国产一区二区三区在线观看精品| 人人狠狠综合久久亚洲| 午夜a成v人精品| 亚洲国产精品久久久男人的天堂| 一区二区三区四区五区视频在线观看| 久久久无码精品亚洲日韩按摩| 日韩亚洲欧美综合| 欧美一区二区三区在线电影 | www.欧美日韩| 成人高清免费在线播放| 不卡的av在线| www.日本不卡| 在线中文字幕一区| 欧美性感一区二区三区| 欧美色爱综合网| 欧美日韩精品三区| 欧美一区二区在线免费观看| 欧美精品一卡两卡| 日韩亚洲欧美在线| 精品欧美乱码久久久久久| 日韩免费看的电影| 久久精品夜夜夜夜久久| 中文字幕电影一区| 中文字幕一区二区在线观看| 国产精品久久精品日日| 国产精品国产三级国产三级人妇| 国产精品免费丝袜| 亚洲一本大道在线| 日韩精品电影一区亚洲| 国产在线精品一区二区夜色| 成人午夜短视频| 色噜噜狠狠成人网p站| 欧美精品色综合| 久久―日本道色综合久久| 国产精品无人区| 亚洲一区自拍偷拍| 另类小说欧美激情| 国产精品99久久久久| 97久久超碰国产精品| 欧美三级韩国三级日本三斤| 日韩精品专区在线| 中文字幕制服丝袜一区二区三区| 丰满亚洲少妇av| 在线精品国精品国产尤物884a| 538在线一区二区精品国产| 久久婷婷久久一区二区三区| 亚洲天天做日日做天天谢日日欢| 亚洲国产乱码最新视频 | 日韩精品免费专区| 国产98色在线|日韩| 欧洲色大大久久| 久久久精品中文字幕麻豆发布| 亚洲精品免费视频| 精品伊人久久久久7777人| 91在线观看一区二区| 91精品国产一区二区三区 | 91国偷自产一区二区三区观看 | 韩国成人精品a∨在线观看| 91在线码无精品| 日韩免费性生活视频播放| 亚洲人一二三区| 精品一区二区成人精品| 在线一区二区视频| 亚洲国产成人午夜在线一区| 性欧美大战久久久久久久久| 成人精品免费看| 精品国产免费久久| 图片区小说区区亚洲影院| jizz一区二区| 久久综合九色综合97婷婷女人 | 偷偷要91色婷婷| 99天天综合性| 国产亚洲欧洲997久久综合| 午夜久久久影院| 91麻豆自制传媒国产之光| 国产无一区二区| 麻豆精品一区二区综合av| 欧美性xxxxx极品少妇| 亚洲人精品午夜| 国产成人av一区二区| 精品久久久久久久人人人人传媒| 亚洲国产精品一区二区久久恐怖片| 风间由美中文字幕在线看视频国产欧美| 欧美一级日韩免费不卡| 亚洲一卡二卡三卡四卡| 97精品电影院| 亚洲欧美自拍偷拍色图| 国产精品影视网| 26uuu精品一区二区三区四区在线| 肉色丝袜一区二区| 欧美日韩视频在线一区二区| 尤物在线观看一区| 91成人免费网站| 亚洲综合视频网| 在线亚洲免费视频| 一区二区三区四区五区视频在线观看| 不卡视频一二三四| 亚洲欧洲av另类| 91视频一区二区| 一区二区三区在线播放| 91九色02白丝porn| 亚洲一区中文在线| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 亚洲欧美激情小说另类| 国产精品女主播在线观看| 国产麻豆精品一区二区| 久久久影视传媒| 99视频精品全部免费在线| 亚洲图片你懂的| 欧美专区日韩专区| 日韩精品免费专区| 欧美v亚洲v综合ⅴ国产v| 精品亚洲免费视频| 国产色91在线| 91一区一区三区| 亚洲一卡二卡三卡四卡五卡| 欧美日韩成人综合| 蜜桃av一区二区| 久久久久久久久一| 99久久精品国产观看| 亚洲精品免费在线观看| 欧美军同video69gay| 美腿丝袜一区二区三区| 久久久久久久网| 色香蕉久久蜜桃| 免费高清不卡av| 欧美国产激情二区三区| 91麻豆成人久久精品二区三区| 亚洲国产成人va在线观看天堂| 日韩欧美另类在线| www.欧美精品一二区| 婷婷综合另类小说色区| 久久亚洲综合色一区二区三区| 成年人国产精品| 青青草视频一区| 国产精品亲子伦对白|