一、图形界面设计

1.新建GUI界面

2.新建空白页

3.命名为"yydsp",打开界面

4.拖放控件

5.按预定功能修改界面

6.填写Callback函数

未填写前的代码:

  1. function varargout = yydsp(varargin)
  2. % YYDSP MATLAB code for yydsp.fig
  3. % YYDSP, by itself, creates a new YYDSP or raises the existing
  4. % singleton*.
  5. %
  6. % H = YYDSP returns the handle to a new YYDSP or the handle to
  7. % the existing singleton*.
  8. %
  9. % YYDSP('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in YYDSP.M with the given input arguments.
  11. %
  12. % YYDSP('Property','Value',...) creates a new YYDSP or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before yydsp_OpeningFcn gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to yydsp_OpeningFcn via varargin.
  17. %
  18. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  19. % instance to run (singleton)".
  20. %
  21. % See also: GUIDE, GUIDATA, GUIHANDLES
  22.  
  23. % Edit the above text to modify the response to help yydsp
  24.  
  25. % Last Modified by GUIDE v2. -Oct- ::
  26.  
  27. % Begin initialization code - DO NOT EDIT
  28. gui_Singleton = ;
  29. gui_State = struct('gui_Name', mfilename, ...
  30. 'gui_Singleton', gui_Singleton, ...
  31. 'gui_OpeningFcn', @yydsp_OpeningFcn, ...
  32. 'gui_OutputFcn', @yydsp_OutputFcn, ...
  33. 'gui_LayoutFcn', [] , ...
  34. 'gui_Callback', []);
  35. })
  36. gui_State.gui_Callback = str2func(varargin{});
  37. end
  38.  
  39. if nargout
  40. [varargout{:nargout}] = gui_mainfcn(gui_State, varargin{:});
  41. else
  42. gui_mainfcn(gui_State, varargin{:});
  43. end
  44. % End initialization code - DO NOT EDIT
  45.  
  46. % --- Executes just before yydsp is made visible.
  47. function yydsp_OpeningFcn(hObject, eventdata, handles, varargin)
  48. % This function has no output args, see OutputFcn.
  49. % hObject handle to figure
  50. % eventdata reserved - to be defined in a future version of MATLAB
  51. % handles structure with handles and user data (see GUIDATA)
  52. % varargin command line arguments to yydsp (see VARARGIN)
  53.  
  54. % Choose default command line output for yydsp
  55. handles.output = hObject;
  56.  
  57. % Update handles structure
  58. guidata(hObject, handles);
  59.  
  60. % UIWAIT makes yydsp wait for user response (see UIRESUME)
  61. % uiwait(handles.figure1);
  62.  
  63. % --- Outputs from this function are returned to the command line.
  64. function varargout = yydsp_OutputFcn(hObject, eventdata, handles)
  65. % varargout cell array for returning output args (see VARARGOUT);
  66. % hObject handle to figure
  67. % eventdata reserved - to be defined in a future version of MATLAB
  68. % handles structure with handles and user data (see GUIDATA)
  69.  
  70. % Get default command line output from handles structure
  71. varargout{} = handles.output;
  72.  
  73. % --- Executes on button press in pushbutton1.
  74. function pushbutton1_Callback(hObject, eventdata, handles)
  75. % hObject handle to pushbutton1 (see GCBO)
  76. % eventdata reserved - to be defined in a future version of MATLAB
  77. % handles structure with handles and user data (see GUIDATA)
  78.  
  79. % --- Executes on button press in pushbutton2.
  80. function pushbutton2_Callback(hObject, eventdata, handles)
  81. % hObject handle to pushbutton2 (see GCBO)
  82. % eventdata reserved - to be defined in a future version of MATLAB
  83. % handles structure with handles and user data (see GUIDATA)
  84.  
  85. % --- Executes on button press in pushbutton3.
  86. function pushbutton3_Callback(hObject, eventdata, handles)
  87. % hObject handle to pushbutton3 (see GCBO)
  88. % eventdata reserved - to be defined in a future version of MATLAB
  89. % handles structure with handles and user data (see GUIDATA)
  90.  
  91. % --- Executes on button press in pushbutton4.
  92. function pushbutton4_Callback(hObject, eventdata, handles)
  93. % hObject handle to pushbutton4 (see GCBO)
  94. % eventdata reserved - to be defined in a future version of MATLAB
  95. % handles structure with handles and user data (see GUIDATA)
  96.  
  97. % --- Executes on button press in pushbutton5.
  98. function pushbutton5_Callback(hObject, eventdata, handles)
  99. % hObject handle to pushbutton5 (see GCBO)
  100. % eventdata reserved - to be defined in a future version of MATLAB
  101. % handles structure with handles and user data (see GUIDATA)
  102.  
  103. % --- Executes on button press in pushbutton6.
  104. function pushbutton6_Callback(hObject, eventdata, handles)
  105. % hObject handle to pushbutton6 (see GCBO)
  106. % eventdata reserved - to be defined in a future version of MATLAB
  107. % handles structure with handles and user data (see GUIDATA)
  108.  
  109. % --- Executes on button press in pushbutton7.
  110. function pushbutton7_Callback(hObject, eventdata, handles)
  111. % hObject handle to pushbutton7 (see GCBO)
  112. % eventdata reserved - to be defined in a future version of MATLAB
  113. % handles structure with handles and user data (see GUIDATA)
  114.  
  115. % --- Executes on button press in pushbutton8.
  116. function pushbutton8_Callback(hObject, eventdata, handles)
  117. % hObject handle to pushbutton8 (see GCBO)
  118. % eventdata reserved - to be defined in a future version of MATLAB
  119. % handles structure with handles and user data (see GUIDATA)
  120.  
  121. % --- Executes on button press in pushbutton9.
  122. function pushbutton9_Callback(hObject, eventdata, handles)
  123. % hObject handle to pushbutton9 (see GCBO)
  124. % eventdata reserved - to be defined in a future version of MATLAB
  125. % handles structure with handles and user data (see GUIDATA)
  126.  
  127. % --- Executes on button press in pushbutton10.
  128. function pushbutton10_Callback(hObject, eventdata, handles)
  129. % hObject handle to pushbutton10 (see GCBO)
  130. % eventdata reserved - to be defined in a future version of MATLAB
  131. % handles structure with handles and user data (see GUIDATA)
  132.  
  133. % --- Executes on button press in pushbutton11.
  134. function pushbutton11_Callback(hObject, eventdata, handles)
  135. % hObject handle to pushbutton11 (see GCBO)
  136. % eventdata reserved - to be defined in a future version of MATLAB
  137. % handles structure with handles and user data (see GUIDATA)
  138.  
  139. % --- Executes on button press in pushbutton12.
  140. function pushbutton12_Callback(hObject, eventdata, handles)
  141. % hObject handle to pushbutton12 (see GCBO)
  142. % eventdata reserved - to be defined in a future version of MATLAB
  143. % handles structure with handles and user data (see GUIDATA)
  144.  
  145. % --- Executes on button press in pushbutton13.
  146. function pushbutton13_Callback(hObject, eventdata, handles)
  147. % hObject handle to pushbutton13 (see GCBO)
  148. % eventdata reserved - to be defined in a future version of MATLAB
  149. % handles structure with handles and user data (see GUIDATA)
  150.  
  151. % --- Executes on button press in pushbutton14.
  152. function pushbutton14_Callback(hObject, eventdata, handles)
  153. % hObject handle to pushbutton14 (see GCBO)
  154. % eventdata reserved - to be defined in a future version of MATLAB
  155. % handles structure with handles and user data (see GUIDATA)

填写后的代码

  1)打开文件部分

  1. [filename,pathname]=uigetfile({'*.*','ALL FILES'},'选择声音');%显示模态对话框,
  2. %列出当前文件夹中的文件,如果文件有效,点击打开时会返回文件名,如果点击取消,返回0
  3. ,])
  4. return;
  5. end
  6. str=[pathname filename];%合成路径+文件名
  7. [temp,Fs]=audioread(str);%读取音频声音
  8. temp=temp(:,); %取一行提取矩阵
  9. temp1=resample(temp,,);%信号降采样处理
  10. handles.y=temp1;%降采样的句柄
  11. handles.y1=temp;%y1为原声
  12. handles.Fs=Fs;%采样频率
  13. guidata(hObject,handles);%存储或检索 UI 数据

程序中,resample为信号降采样处理,理解如下:
B=resample(x,90,250); %
采样从250Hz降到90Hz,如果250在前,就是插值从90到250,可以看B的长度,250Hz采样4000个数据等于90hz采样1440个数据,这就是降采样。

2)播放原声,画时频图

  1. fs=handles.Fs;
  2. Y=handles.y1;
  3. Y=Y(:,);%取单声道
  4. t1=:length(Y);
  5. t=t1/fs;
  6. sound(Y,fs); %播放原声
  7. F = fft(Y);%快速傅里叶变换
  8. freq = linspace(-fs/,fs/,length(Y)+);
  9. freq(end) = [];
  10. plot(handles.axes1,t,Y)
  11. xlabel(handles.axes1,'时间');
  12. ylabel(handles.axes1,'幅度');
  13. title(handles.axes1,'原声音的波形');
  14. y1=fft(Y);
  15. plot(handles.axes4,abs(y1));
  16. xlabel(handles.axes4,'圆频率');
  17. ylabel(handles.axes4,'幅度');
  18. title(handles.axes4,'未改变坐标轴的频率特性');
  19. plot(handles.axes2,freq,abs(fftshift(F)));
  20.  
  21. title(handles.axes2,'原声音的真实频响');
  22. xlabel(handles.axes2,'圆频率');
  23. ylabel(handles.axes2,'幅度');
  24. title(handles.axes2,'频率特性');

3)男声变女声

  1. FL = ; % 帧移
  2. WL = ; % 窗长
  3. P = ; %预测系数个数
  4. s = handles.y;
  5. fs = handles.Fs;
  6. % 定义常数
  7. s = s/max(s); % 归一化
  8. L = length(s); % 读入语音长度
  9. FN = floor(L/FL)-; % 计算帧长,floor;向负无穷方向
  10. % 预测和重建滤波器
  11. exc = zeros(L,); % 激励信号,double类零矩阵L1
  12. zi_pre = zeros(P,); % 预测滤波器状态
  13. s_rec = zeros(L,); % 重建语音
  14. zi_rec = zeros(P,);
  15. % 变调滤波器
  16. exc_syn_t = zeros(L,); % 合成的激励信号,创建一个L1列的0脉冲
  17. s_syn_t = zeros(L,); % 合成语音
  18. last_syn_t = ; % 存储上一个段的最后一个脉冲的下标
  19. zi_syn_t = zeros(P,); % 合成滤波器
  20. hw = hamming(WL); %汉明窗
  21. %滤波器
  22. % 依次处理每帧语音
  23. :FN %从第三个子数组开始
  24. % 计算预测系数
  25. s_w = s(n*FL-WL+:n*FL).*hw; %汉明窗加权
  26. [A,E]=lpc(s_w,P); %线性预测计算预测系数
  27. % A是预测系数,E会被用来计算合成激励的能量
  28. s_f=s((n-)*FL+:n*FL); % 本帧语音
  29. %利用filter函数重建语音
  30. [exc1,zi_pre] = filter(A,,s_f,zi_pre);
  31. exc((n-)*FL+:n*FL) = exc1; %计算激励
  32. %利用filter函数重建语音
  33. [s_rec1,zi_rec] = filter(,A,exc1,zi_rec);
  34. s_rec((n-)*FL+:n*FL) = s_rec1; %重建语音
  35. % 下面只有得到exc后才可以
  36. s_Pitch = exc(n*FL-:n*FL);
  37. PT(n) = findpitch(s_Pitch); %计算基音周期pt
  38. G = sqrt(E*PT(n)); %计算合成激励的能量G
  39. PT1 =floor(PT(n)/); %减小基音周期
  40. poles = roots(A);
  41. deltaOMG =**pi/fs;
  42.  
  43. : %增加共振峰
  44.  
  45. poles(p) = poles(p)*exp(1j*deltaOMG);
  46. elseif imag(poles(p))<
  47. poles(p) = poles(p)*exp(-1j*deltaOMG);
  48. end
  49. end
  50. A1=poly(poles);
  51. tempn_syn_t=(:n*FL-last_syn_t);
  52. exc_syn1_t = zeros(length(tempn_syn_t),);
  53. exc_syn1_t(mod(tempn_syn_t,PT1)==) = G;
  54. exc_syn1_t = exc_syn1_t((n-)*FL-last_syn_t+:n*FL-last_syn_t);
  55. [s_syn1_t,zi_syn_t] = filter(,A1,exc_syn1_t,zi_syn_t);
  56. exc_syn_t((n-)*FL+:n*FL) = exc_syn1_t; %合成激励
  57. s_syn_t((n-)*FL+:n*FL) = s_syn1_t; %合成语音
  58. last_syn_t = last_syn_t+PT1*floor((n*FL-last_syn_t)/PT1);
  59. end
  60. Y = s_syn_t;
  61. F = fft(Y);
  62. freq = linspace(-fs/,fs/,length(Y)+);
  63. freq(end) = [];
  64. plot(handles.axes4,freq,abs(fftshift(F)));
  65. xlabel(handles.axes4,'圆频率');
  66. ylabel(handles.axes4,'幅度');
  67. title(handles.axes4,'频率特性');
  68. handles.y=s_syn_t;
  69. guidata(hObject,handles);
  70. plot(handles.axes3,s_syn_t);
  71. t1=:length(s_syn_t);
  72. t=t1/;
  73. plot(handles.axes3,t,s_syn_t);
  74. title(handles.axes3,'时域图');
  75. xlabel(handles.axes3,'时间');
  76. ylabel(handles.axes3,'幅度');
  77. sound(handles.y,);

4)退出

  1. delete(handles.figure1);

5)快放

  1. fs=handles.Fs;
  2. Y=handles.y1;
  3. Y=Y(:,);
  4. F = fft(Y);
  5. freq = linspace(-fs/,fs/,length(Y)+);
  6. freq(end) = [];
  7. sound(Y,*fs);
  8. t1=:length(Y);
  9. t=t1/(*fs);
  10. plot(handles.axes3,t,Y)
  11. title(handles.axes3,'时域图');
  12. xlabel(handles.axes3,'时间');
  13. ylabel(handles.axes3,'幅度');
  14. plot(handles.axes4,freq,abs(fftshift(F)));
  15. xlabel(handles.axes4,'圆频率');
  16. ylabel(handles.axes4,'幅度');
  17. title(handles.axes4,'频率特性');

6)慢放

  1. fs=handles.Fs;
  2. Y=handles.y1;
  3. Y=Y(:,);
  4. sound(Y,0.5*fs);
  5. F = fft(Y);
  6. freq = linspace(-fs/,fs/,length(Y)+);
  7. freq(end) = [];%
  8. t1=:length(Y);
  9. t=t1/(0.5*fs);
  10. plot(handles.axes3,t,Y)
  11. title(handles.axes3,'时域图');
  12. xlabel(handles.axes3,'时间');
  13. ylabel(handles.axes3,'幅度');
  14. plot(handles.axes4,freq,abs(fftshift(F)));
  15. xlabel(handles.axes4,'圆频率');
  16. ylabel(handles.axes4,'幅度');
  17. title(handles.axes4,'频率特性');

7)制造回音

  1. fs=handles.Fs;
  2. N=length(handles.y1);
  3. x1=handles.y1(:N);
  4. x2=handles.y1(:N);
  5. x1=[x1,zeros(,)];
  6. x2=[zeros(,),,)];
  7. z=x1+x2;
  8. F = fft(z);
  9. freq = linspace(-fs/,fs/,length(z)+);
  10. freq(end) = [];
  11. t1=:length(z);
  12. t=t1/fs;
  13. plot(handles.axes3,t,z)
  14. title(handles.axes3,'含回音波形');
  15. xlabel(handles.axes3,'时间');
  16. ylabel(handles.axes3,'幅度');
  17. plot(handles.axes4,freq,abs(fftshift(F)));
  18. xlabel(handles.axes4,'圆频率');
  19. ylabel(handles.axes4,'幅度');
  20. title(handles.axes4,'频率特性');
  21. sound(z,fs);

8)回音还原

  1. fs=handles.Fs;
  2. N=length(handles.y1);
  3. x1=handles.y1(:N);
  4. x2=handles.y1(:N);
  5. x3=handles.y1(:N);
  6. x1=[x1,zeros(,)];
  7. x2=[zeros(,),,)];
  8. z=x1+x2;
  9. b=;
  10. a=zeros(,N);
  11. a()=;
  12. a()=0.4;
  13. z2=filter(b,a,z);
  14. F = fft(z2);
  15. freq = linspace(-fs/,fs/,length(z2)+);
  16. freq(end) = [];
  17. t1=:length(z2);
  18. t=t1/fs;
  19. plot(handles.axes3,t,z2)
  20. title(handles.axes3,'滤除回声的波形');
  21. xlabel(handles.axes3,'时间');
  22. ylabel(handles.axes3,'幅度');
  23. plot(handles.axes4,freq,abs(fftshift(F)));
  24. xlabel(handles.axes4,'圆频率');
  25. ylabel(handles.axes4,'幅度');
  26. title(handles.axes4,'频率特性');
  27. sound(z2,fs);

9)制造噪声

  1. fs=handles.Fs;
  2. x=handles.y1;
  3. y=x(:,); %取一行提取矩阵
  4. noise=*(:length(y))/fs)+*(:length(y))/fs)...
  5. +*(:length(y))/fs);%噪声 10000rad/s++
  6. VNnoise=y+noise';%向量维度一致
  7. F = fft(VNnoise);
  8. freq = linspace(-fs/,fs/,length(VNnoise)+);
  9. freq(end) = [];
  10. t1=:length(VNnoise);
  11. t=t1/fs;
  12. plot(handles.axes3,t,VNnoise)
  13. xlabel(handles.axes3,'时间');
  14. ylabel(handles.axes3,'幅度');
  15. title(handles.axes3,'添加噪声的波形');
  16. plot(handles.axes4,freq,abs(fftshift(F)));
  17. xlabel(handles.axes4,'圆频率');
  18. ylabel(handles.axes4,'幅度');
  19. title(handles.axes4,'频率特性');
  20. sound(VNnoise,fs);

10)滤除噪声

  1. fs=handles.Fs;
  2. x=handles.y1;
  3. y=x(:,); %取一行提取矩阵
  4. noise=*(:length(y))/fs)+*(:length(y))/fs)...
  5. +*(:length(y))/fs);%噪声 10000rad/s++
  6. VNnoise=y+noise';%向量维度一致
  7. %[b,a] = butter(,*/fs,'LOW') ; %巴特沃斯滤波器
  8. %result=filter(b,a,VNnoise);
  9. Hd = ditong1;%Fdatool滤波
  10. result=filter(Hd,x);
  11. result=result(:,);
  12. sound(result,fs);
  13. F = fft(result);
  14. freq = linspace(-fs/,fs/,length(result)+);
  15. freq(end) = [];
  16. t1=:length(result);
  17. t=t1/fs;
  18. plot(handles.axes3,t,result)
  19. xlabel(handles.axes3,'时间');
  20. ylabel(handles.axes3,'幅度');
  21. title(handles.axes3,'添加噪声的波形');
  22. plot(handles.axes4,freq,abs(fftshift(F)));
  23. xlabel(handles.axes4,'圆频率');
  24. ylabel(handles.axes4,'幅度');
  25. title(handles.axes4,'频率特性');

11)左右声道合唱

  1. fs=handles.Fs;
  2. sound(original,fs);
  3. a1=;
  4. a2=-;
  5. b1=;
  6. b2=-;
  7. Soundleft=original(:,);%左声道
  8. Soundright=original(:,);%右声道
  9. newleft=Soundleft+Soundright; %新的左声道为原来的全部声道
  10. newright=b1*Soundleft+b2*Soundright; %新的右声道为原来的左声道-原来的右
  11. Sound(:,)=newleft;
  12. Sound(:,)=newright;
  13. bp=fir1(,[,]/(fs/));
  14. cutdown=filter(bp,,Sound);
  15. Sound_final=Sound-0.6*abs(cutdown);
  16. sound(Sound_final,fs)
  17. F = fft(Sound_final);
  18. freq = linspace(-fs/,fs/,length(Sound_final)+);
  19. freq(end) = [];
  20. t1=:length(Sound_final);
  21. t=t1/fs;
  22. plot(handles.axes3,t,Sound_final)
  23. xlabel(handles.axes3,'时间');
  24. ylabel(handles.axes3,'幅度');
  25. title(handles.axes3,'时域波形');
  26. plot(handles.axes4,freq,abs(fftshift(F)));
  27. xlabel(handles.axes4,'圆频率');
  28. ylabel(handles.axes4,'幅度');
  29. title(handles.axes4,'频率特性');

12)反放

  1. fs=handles.Fs;
  2. y=handles.y1;
  3. M=length(y):-:;
  4. rever=y(M);
  5. sound(rever,fs);%反播
  6. F = fft(rever);
  7. freq = linspace(-fs/,fs/,length(rever)+);
  8. freq(end) = [];
  9. t1=:length(rever);
  10. t=t1/fs;
  11. plot(handles.axes3,t,rever)
  12. xlabel(handles.axes3,'时间');
  13. ylabel(handles.axes3,'幅度');
  14. title(handles.axes3,'反播的波形');
  15. plot(handles.axes4,freq,abs(fftshift(F)));
  16. xlabel(handles.axes4,'圆频率');
  17. ylabel(handles.axes4,'幅度');
  18. title(handles.axes4,'频率特性');

基于MATLAB的语音信号处理的更多相关文章

  1. 基于Matlab的MMSE的语音增强算法的研究

    本课题隶属于学校的创新性课题研究项目.2012年就已经做完了,今天一并拿来发表.   目录: --基于谱减法的语音信号增强算法..................................... ...

  2. python做语音信号处理

    音频信号的读写.播放及录音 标准的python已经支持WAV格式的书写,而实时的声音输入输出需要安装pyAudio(http://people.csail.mit.edu/hubert/pyaudio ...

  3. 基于MATLAB的离散小波变换

    申明,本文非笔者原创,原文转载自:  基于Matlab的离散小波变换         http://blog.sina.com.cn/s/blog_725866260100ryh3.html 简介 在 ...

  4. 基于MATLAB的GUI(Graphical User Interface)音频实时显示设计

    摘要:本文章的设计主要讲基于matlab的gui音频实时显示设计,此次设计的gui相当于一个简洁的音乐播放器,界面只有”录音“和”播放“两个控件,哈哈,够简洁吧.通过”录音“按钮可以实现声音从电脑的声 ...

  5. 语音信号处理之(三)矢量量化(Vector Quantization)

    语音信号处理之(三)矢量量化(Vector Quantization) zouxy09@qq.com http://blog.csdn.net/zouxy09 这学期有<语音信号处理>这门 ...

  6. 基于MATLAB的中值滤波均值滤波以及高斯滤波的实现

    基于MATLAB的中值滤波均值滤波以及高斯滤波的实现 作者:lee神 1.   背景知识 中值滤波法是一种非线性平滑技术,它将每一像素点的灰度值设置为该点某邻域窗口内的所有像素点灰度值的中值. 中值滤 ...

  7. 语音信号处理之(一)动态时间规整(DTW)

    语音信号处理之(一)动态时间规整(DTW) zouxy09@qq.com 原文:http://blog.csdn.net/zouxy09 这学期有<语音信号处理>这门课,快考试了,所以也要 ...

  8. 语音信号处理之动态时间规整(DTW)(转)

    这学期有<语音信号处理>这门课,快考试了,所以也要了解了解相关的知识点.呵呵,平时没怎么听课,现在只能抱佛脚了.顺便也总结总结,好让自己的知识架构清晰点,也和大家分享下.下面总结的是第一个 ...

  9. 【VS开发】【智能语音处理】语音信号处理之(一)动态时间规整(DTW)

    语音信号处理之(一)动态时间规整(DTW) zouxy09@qq.com http://blog.csdn.net/zouxy09 这学期有<语音信号处理>这门课,快考试了,所以也要了解了 ...

随机推荐

  1. Spring MVC-视图解析器(View Resolverr)-内部资源视图解析器(Internal Resource View Resolver)示例(转载实践)

    以下内容翻译自:https://www.tutorialspoint.com/springmvc/springmvc_internalresourceviewresolver.htm 说明:示例基于S ...

  2. SDUT OJ -2892 A

    A nid=24#time" title="C.C++.go.haskell.lua.pascal Time Limit60ms Memory Limit 65536K java. ...

  3. Latex 排版技巧 1——数学公式对齐

    在我们排版数学推导式时,非常多时候我们希望可以让公式的等号对齐 这样更接近人的数学推导习惯 例如以下图效果图 使用 begin{aligned} end{aligned}将所需对齐的数学公式代码块包起 ...

  4. codeforces 437D The Child and Zoo

    time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...

  5. jmeter默认生成测试报告

    我的jmeter安装在F:\study\apache-jmeter-3.1\apache-jmeter-3.1下,在bin目录下执行 其中E:\code\jmeterReport\Course-tes ...

  6. 学习笔记——node.js

    node.js的作用在于,号称可以让服务器支持更多的连接.比如说,php + apche可以让服务器支持4000个并发连接,那么node.js + apche可以让服务器支持并发几万个. 为什么这么牛 ...

  7. yum install tomcat

    安装tomcat6 yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps 启动tomcat6 service tomcat6 start ...

  8. 【NOI 2015】 荷马史诗

    [题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=4198 [算法] 不难发现,题目中所说的编码方式就是哈夫曼编码 注意合并时优先合并深度 ...

  9. P1390--公约数的和

    这个题比较狗,一开始没有啥思路,但是看完题解觉得还是比较好理解的.主要思路就是需要把每个数是几个数的最大公约数求出来,然后求和就行了.蓝书P124例九 设f(n) = gcd(1,n) + gcd(2 ...

  10. Django day02

    一:Django 中 app 的概念 每个项目里面都会 有很多不同的模块,我们可以把它们写在一个项目里,我们把模块分成一个一个不同的app,这样写可以便于管理,写的一些项目也可能不单单是一个页面,还可 ...