一、数字信号处理系统简介

理论知识参考文献:基于GUI的《数字信号处理》教学演示系统的设计
基于Matlab GUI界面的数字信号处理辅助教学系统
基于MATLAB的数字信号处理实验平台

二、部分源代码

function varargout = program1(varargin)
% PROGRAM1 MATLAB code for program1.fig
%      PROGRAM1, by itself, creates a new PROGRAM1 or raises the existing
%      singleton*.
%
%      H = PROGRAM1 returns the handle to a new PROGRAM1 or the handle to
%      the existing singleton*.
%
%      PROGRAM1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in PROGRAM1.M with the given input arguments.
%
%      PROGRAM1('Property','Value',...) creates a new PROGRAM1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before program1_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to program1_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help program1% Last Modified by GUIDE v2.5 03-Jan-2020 09:14:21% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @program1_OpeningFcn, ...'gui_OutputFcn',  @program1_OutputFcn, ...'gui_LayoutFcn',  [] , ...'gui_Callback',   []);
if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});
endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
elsegui_mainfcn(gui_State, varargin{:});
end% End initialization code - DO NOT EDIT% --- Executes just before program1 is made visible.
function program1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to program1 (see VARARGIN)% Choose default command line output for program1
handles.output = hObject;% Update handles structure
guidata(hObject, handles);% UIWAIT makes program1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);set(handles.uipanel1,'visible','off');
set(handles.uipanel2,'visible','off');
% --- Outputs from this function are returned to the command line.
function varargout = program1_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structure
varargout{1} = handles.output;% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
end% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
cla(handles.axes1,'reset');
cla(handles.axes2,'reset');
cla(handles.axes3,'reset');
axes(handles.axes1);
cla;L=str2num(get(handles.edit1,'String'));
A=str2num(get(handles.edit2,'String'));
f1=str2num(get(handles.edit3,'String'));
f2=str2num(get(handles.edit4,'String'));
Phi=str2num(get(handles.edit5,'String'));
a=str2num(get(handles.edit6,'String'));
Sig=str2num(get(handles.edit7,'String'));
fs=1000;
phi=Phi*pi/180;
popup_sel_index = get(handles.popupmenu1, 'Value');
switch popup_sel_indexcase 1t=0:0.001:L;y=A*sin(2*pi*f1*t+phi);plot(t,y);set(gca,'Xlim',[0 1]);title('原始信号');case 2t=0:0.001:L;y=A*square(2*pi*f1*t,a);plot(t,y);set(gca,'Xlim',[0 1]);title('原始信号');case 3t=0:0.001:L;y=A*sin(2*pi*f1*t)+A*sin(2*pi*f2*t);plot(t,y);set(gca,'Xlim',[0 1]);title('原始信号');case 4n=round(1000*L);t=linspace(0,L,n);y=sqrt(Sig)*randn(1,n);plot(t,y);set(gca,'Xlim',[0 1]);title('原始信号');case 5n=round(1000*L);t=linspace(0,L,n);y=sqrt(Sig)*rand(1,n);plot(t,y);set(gca,'Xlim',[0 1]);title('原始信号');
endfunction edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
endfunction edit2_Callback(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
endfunction edit3_Callback(hObject, eventdata, handles)
% hObject    handle to edit3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit3 as text
%        str2double(get(hObject,'String')) returns contents of edit3 as a double

三、运行结果


四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1] 沈再阳.精通MATLAB信号处理[M].清华大学出版社,2015.
[2]高宝建,彭进业,王琳,潘建寿.信号与系统——使用MATLAB分析与实现[M].清华大学出版社,2020.
[3]王文光,魏少明,任欣.信号处理与系统分析的MATLAB实现[M].电子工业出版社,2018.
[4]高彦彦,张晶,李莉,贾英茜.基于GUI的《数字信号处理》教学演示系统的设计[J].教育教学论坛. 2019,(48)
[5]李俊,张淑玲,帅晶.基于Matlab GUI界面的数字信号处理辅助教学系统[J].信息通信. 2020,(08)
[6]朱御康.基于MATLAB的数字信号处理实验平台[J].通信电源技术. 2021,38(03)

【数字信号处理】基于matlab GUI IIR低通+FIR高通信号时域+频谱分析【含Matlab源码 1029期】相关推荐

  1. 【信号处理】基于IIR低通+FIR高通信号时域和频谱分析含Matlab源码

    1 简介 结合数字滤波器的理论基础和设计方法,在MATLAB程序语言环境下,设计出有限长单位脉冲响应(FIR)数字滤波器,同时利用GUI界面设计FIR数字滤波器人机交互平台,该系统平台界面直观.操作简 ...

  2. matlab凯塞窗低通fir滤波器,基于Matlab的FIR滤波器设计与实现

    一.摘要 前面一篇文章介绍了通过FDATool工具箱实现滤波器的设计,见" 二.实验平台 Matlab7.1 三.实验原理 以低通滤波器为例,其常用的设计指标有: 通带边缘频率fp(数字频率 ...

  3. Matlab滤波器设计——基于filter函数的低通、高通、带通、带阻滤波器

    文章目录 问题提出 一.低通滤波器 1.保留5Hz 2.运行结果 二.高通滤波器 1.保留30Hz 2.运行结果 三.带通滤波器 1.保留20Hz 2.运行结果 四.带阻滤波器 1.滤除5Hz和30H ...

  4. 【路径规划】基于matlab GUI多种蚁群算法栅格地图最短路径规划【含Matlab源码 650期】

    ⛄一.蚁群算法及栅格地图简介 1 蚁群算法 1.1 蚁群算法的提出 蚁群算法(ant colony optimization, ACO),又称蚂蚁算法,是一种用来寻找优化路径的机率型算法.它由Marc ...

  5. 【图像加密】基于matlab GUI Logistic+Tent+Kent+Henon图像加密与解密【含Matlab源码 1745期】

    ⛄一.混沌系统简介 0 引言 随着通讯技术的飞速发展, 越来越多的领域需要传送数字图像信号, 因此信息的传送安全问题显得越来越重要.通常应用于数字图像通信的两种保护技术为:数字水印技术和图像加密技术. ...

  6. 【路径规划】基于matlab GUI蚁群算法机器人栅格地图最短路径规划【含Matlab源码 927期】

    ⛄一.蚁群算法简介 1 引言 在自然界中各种生物群体显现出来的智能近几十年来得到了学者们的广泛关注,学者们通过对简单生物体的群体行为进行模拟,进而提出了群智能算法.其中, 模拟蚁群觅食过程的蚁群优化算 ...

  7. 【车牌识别】基于matlab GUI BP神经网络车牌识别(带面板)【含Matlab源码 790期】

    ⛄一.BP车牌识别简介(附课程作业报告) 车牌识别系统设计与实现 车牌识别系统主要分为三部分:车牌图像预处理.特征提取以及基于BP神经网络对特征进行训练和分类,流程图如图1所示. 图1 车牌识别系统组 ...

  8. 【车牌识别】基于matlab GUI阈值分割车牌识别(带面板)【含Matlab源码 721期】

    ⛄一.车牌识别简介 1 车牌图像处理 车牌图像处理主要有五个组成部分:图像灰度化.图像二值化.图像边缘检测.图像形态学运算和图像滤波处理.它是车牌识别系统中最根本且最基础的操作,车牌图像处理的好坏情况 ...

  9. 【火灾检测】基于matlab GUI森林火灾检测系统(带面板)【含Matlab源码 1921期】

    ⛄一.火灾检测简介 1 引言 目前森林火灾是破坏森林的最主要的灾害之一, 影响很大.森林是各种珍禽异兽的家园, 森林遭受火灾后, 会破坏野生动物赖以生存的环境.严重的森林火灾不仅能引起水土流失, 还会 ...

  10. 【药材识别】基于matlab GUI SVM色差色温判断药材炮制程度系统【含Matlab源码 2241期】

    ⛄一.SVM色差色温判断药材炮制程度系统简介 本课题来源于"十二五"国家科技支撑计划项目(2012BAI29B11).颜色是中药质量标准中性状评价极为重要的内容,但传统的中药颜色检 ...

最新文章

  1. android常见错误-Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
  2. Activity管理(三):activity内核管理方案详细讲解
  3. Protobuf在Unity中的通讯使用
  4. php服务为什么开不了,php怎么打不开
  5. VTK:IO之ReadPlainTextTriangles
  6. Circle and Points POJ - 1981(单位圆覆盖最多点)
  7. 随想录(关于论文投稿)
  8. 整理一些质量不错的教程、博客、论坛
  9. 使用Ffmpeg获取视频编码格式
  10. 【渝粤题库】陕西师范大学151113 财经法规与职业道德
  11. 腾讯扩容 php环境失效,腾讯云硬盘扩容挂载应该怎么办?
  12. mysql只有frm_MySQL只有.frm和.ibd文件如何批量恢复InnoDB表-爱可生
  13. 电脑重新分区后文件怎么恢复?流水的难题铁打的办法
  14. 各大搜索引擎网站登录入口大全
  15. 《赢在用户-Web人物角色创建和应用实践指南》
  16. 读心术程序c语言流程图,无聊的时候写的读心术小程序
  17. 用小米盒子搭建家庭NAS
  18. Kotlin学习(6)-类和对象之类成员介绍
  19. 【网络科学0】新的开始
  20. 为什么很多动物不用学就会游泳?比如猪?人却不行?

热门文章

  1. pdfplumber库解析pdf格式
  2. 横向滑动页面,导航条滑动居中的 js 实现思路
  3. [HTML5]块和内联元素的嵌套
  4. 在Java中导出word、excel格式文件时JSP页面头的设置
  5. HDU 1195 Open the Lock BFS
  6. 用HTML5的DOCTYPE标签兼容各版本IE浏览器的方法技术
  7. OpenCV人工智能图像处理学习笔记 第5章 计算机视觉加强之图像美化
  8. 2020-08-22 每日一句
  9. Attit 现代编程语言重要特性 目录 第一章 可读性与开发效率 简单性 1 第一节 垃圾回收 1 第二节 自动垃圾回收 1 第三节 命名参数 函数多返回值 1 第四节 多语言 语言交互性 2 第五
  10. Atitit 2019技术趋势与没落技术 目录 1.1. abcdAtitit 技术领域趋势 abcd研究总结AI(人工智能)BlockChain(区块链)、Cloud(云)、和Data(大数据)