split_sig.m
来自「The MATLAB and Praat code files for perf」· M 代码 · 共 14 行
M
14 行
function [sig1,sig2,split_loc] = split_sig(sig)
%SPLIT_SIG Splits the signal in half
%
% SPLIT_SIG(sig) Splits sig in half, returning the halves sig1 and sig2,
% and the location of the split in the original signal, split_loc
%
% By: Matthew Hutchinson
% Created: 12/09/04
% Rice University
% Elec 301 Project
split_loc = ceil(length(sig)/2);
sig1 = sig(1:split_loc);
sig2 = sig(split_loc+1:length(sig));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?