good day my name is Jakob Lisi I am 美好的一天，我叫Jakob Lisi，我是
currently a third-year tutoring student 目前是三年级补习生
at San Blas University and I'm doing 在圣布拉斯大学，我在做
vacation work at optimum solutions so 假期工作以最佳解决方案，因此
for this demo I'm going to talk to you 在这个演示中，我将与您交谈
about parties the signal processing 关于各方信号处理
toolbox with MATLAB on the agenda today MATLAB成为当今议程的工具箱
we're going to have an introduction to 我们将对
the toolbox going to look at how we can 工具箱将探讨如何
generate and measure signals we are 产生和测量我们是的信号
going to look at a signal filtering 看一下信号过滤
example and then two more common 例子，然后两个更常见
application examples so firstly as an 首先是应用示例
introduction I'm sure we all know how 简介我确定我们都知道如何
signals affect us in everyday life they 信号影响我们的日常生活
are used in cell phones and medical 用于手机和医疗
devices and GPS systems financial 设备和GPS系统财务
analytics and then some research areas 分析，然后是一些研究领域
as well and then the concept of signal 以及信号的概念
processing is even found in means okay 甚至可以找到处理方法
so firstly I want to emphasize why we 所以首先我想强调为什么我们
are using MATLAB so MATLAB is very easy 正在使用MATLAB，因此MATLAB非常简单
to use this means it will transform the 使用这个意味着它将改变
way you work MATLAB lets you visualize 工作方式MATLAB使您可视化
what you want to see in an intuitive way 您想以直观的方式看到的内容
so when visualizing data becomes as easy 因此当可视化数据时变得容易
as with MATLAB you're not thinking about 与MATLAB一样，您并没有考虑
formulas and specific use cases you're 公式和特定的用例
seeing the whole picture and interacting 看到整个画面并进行互动
with the concepts and implications 与概念和含义
rather than the maths and the data the 而不是数学和数据
result is that you can focus on 结果是您可以专注于
creatively getting the data to work for 创造性地获取数据以供工作
you in new ways so the basic workflow of 您以新的方式，所以
MATLAB is shown in this slide 该幻灯片显示了MATLAB
firstly to get the data into MATLAB you 首先将数据导入MATLAB
can use files like binary files or Excel 可以使用二进制文件或Excel之类的文件
spreadsheets you can get data from other 电子表格，您可以从其他电子表格中获取数据
software applications as well and from 软件应用程序以及来自
Hardware also which we will look at 我们还将介绍的硬件
later once you have the data in MATLAB 稍后，一旦您在MATLAB中获得了数据
you can analyze the media data develop 您可以分析媒体数据的发展
algorithms and applications and then 算法和应用，然后
when chef process the data you can 当厨师处理数据时，您可以
export it via word documents or PDF 通过Word文档或PDF导出
documents or you can convert to C code 文档，也可以转换为C代码
if you want to deploy 如果您要部署
hardware so for this presentation I'm 硬件，因此对于本演示，我是
only going to focus on the explore 只专注于探索
discover section in the middle so what 在中间发现部分
are the key features of the signal 是信号的关键特征
processing toolbox the first is you can 处理工具箱首先是可以
generate signals and visualize them you 产生信号并使它们可视化
can perform signal transforms from the 可以从
time to the frequency domain and vice 到频域的时间，反之
versa you can design analog and digital 反之，您可以设计模拟和数字
filters and analyze and implement them 筛选并分析和实施它们
you can employ statistical functions to 您可以使用统计功能
highlight some aspects of your data and 突出显示数据的某些方面，并
MATLAB has some nice power spectral MATLAB具有一些不错的功率谱
density estimation algorithms that can 密度估计算法可以
show you the power spectral density of 告诉你功率谱密度
your signals now this list is not 您的信号现在该列表不是
exhaustive there are a lot of other 详尽无遗的还有很多其他
functions that the signal processing 信号处理功能
toolbox has as well 工具箱也有
[Music] [音乐]
so moving on then to a signal generation 因此继续进行信号生成
example we firstly going to look at how 例子我们先来看一下
we can generate some commonly used 我们可以生成一些常用的
things so if we go to matlab firstly we 事情，所以如果我们先去matlab
specify the frequency the sampling 指定采样频率
frequency and the frequency of the 频率和频率
signals and then we can just use Bolton 信号，然后我们可以使用Bolton
functions like square sawtooth sine and 像方锯齿正弦和
chirp to plot some known signals in rp以绘制一些已知信号
MATLAB okay so when that is plotted we MATLAB好吧，所以当我们绘制它时
can see the result is very simple so if 可以看到结果很简单，所以如果
we maybe want to look at this chirp 我们也许想看看这个chi
signal then we see in the time domain it 信号，然后我们在时域中看到它
doesn't really give us a lot of 并没有真正给我们很多
information so what we can do is we can 信息，所以我们能做的就是
plot the spectrogram of the signal and 绘制信号的频谱图
then see what the frequency does with 然后看看频率如何
respect to time okay so here we can see 尊重时间，所以在这里我们可以看到
that the majority frequency components 多数频率成分
varies linearly with time so going back 随着时间呈线性变化，因此返回
how can we acquire and process 我们如何获取和处理
real-world signals for MATLAB so the MATLAB的真实信号，因此
answer is there are many different ways 答案是有很多不同的方法
here are some of the hardware ways you 这是您的一些硬件方式
can get signals into MATLAB so you can 可以将信号输入到MATLAB中，因此您可以
use the instrument control toolbox to 使用仪器控制工具箱
get data from oscilloscopes and signal 从示波器获取数据和信号
generators then you can use the data 发电机，然后您可以使用数据
acquisition toolbox to get data from a 采集工具箱以从
USB and PCI protocols and then you can USB和PCI协议，然后您就可以
get data from cameras and from vehicle 从摄像机和车辆获取数据
toolboxes and also MATLAB has interfaces 工具箱以及MATLAB具有接口
for communicating with nearly everything 与几乎所有事物进行交流
so the example we're going to the gut is 所以我们要讲的例子是
sunspots so firstly sunspots are 黑子，所以首先黑子是
temporary phenomenon we intense magnetic 暂时现象我们强烈的磁性
activity on the surface of the Sun 太阳表面的活动
inhibits the normal conviction so 抑制了正常信念，所以
consequently cooler or dark spots appear 因此会出现凉爽或暗点
on the surface of the Sun so for this 在太阳表面上
example we would like to determine the 我们想确定的例子
solar cycle using the sunspots data so 太阳黑子利用太阳黑子数据
we know the solar cycle is 11 years and 我们知道太阳周期是11年，
we would like 我们想
to verify this using that data so we are 使用该数据来验证这一点，所以我们
going to look at the time series 要看时间序列
analysis and the frequency series 分析和频率序列
analysis to get the same results so 分析以获得相同的结果
going to MATLAB okay so firstly if we 转到MATLAB好吧，首先，如果我们
plot the number of sunspots per year it 标出每年的黑子数
looks like this so we would like to see 看起来像这样，我们希望看到
where the majority of sunspots live to 大多数黑子都生活在那里
do that we can use the fine peaks 这样做，我们可以使用细峰
function to plot the local Maxima of 函数绘制局部
each six year period 每六年
once that is blotted we can see that the 一旦被印迹，我们可以看到
local Maxima is highlighted with red 局部千里马用红色突出显示
markers so in order to get the distance 因此，为了获得距离
between them or the period we can use 他们之间或我们可以使用的时期
the DEF function and then just calculate DEF函数，然后进行计算
the mean we see the cycle is ten point 我们看到周期的平均值是十点
eight six years which corresponds quite 八六年，相当
nicely to the known value of eleven 很好地达到了十一的已知值
years so we can do the same in the 年，所以我们可以在
frequency domain using a discrete 使用离散的频域
Fourier transform so MATLAB has a 傅里叶变换，因此MATLAB具有
built-in function f of T which computes T的内置函数f
the fast Fourier transform the signal so 快速的傅立叶变换信号
for this example we're only interested 在这个例子中，我们只感兴趣
in the fluctuations so we can remove the 在波动中，所以我们可以删除
mean from the signal and then only plot 从信号中取平均值，然后仅作图
the fluctuations doing that we can see 我们可以看到的波动
that the largest frequency component 那最大的频率成分
lies about at 0.09 which is the 大约是0.09
reciprocal of 11 so we get the same 倒数是11，所以我们得到相同的结果
result in the frequency domain as well 也导致频域
moving back to the presentation so that 回到演示文稿，以便
concludes that example 总结那个例子
[Music] [音乐]
looking as senior full string we know 看起来像是高级全弦
there are various challenges in filter 过滤器面临各种挑战
design like you would like to design 如您所愿设计
your filter squad rapidly you want to 您想快速地加入滤镜小组
move through different full two 通过不同的完整二
architectures quite falsely you would 你会错误地架构
like to have your design process as 喜欢有你的设计过程
streamlined as possible and once you 尽可能精简，一旦您
have designed the filter you would maybe 设计了您可能需要的过滤器
like to deploy the filter on hardware 喜欢在硬件上部署过滤器
devices so you would want to design for 设备，因此您要设计
implementation of course MATLAB has MATLAB的实现当然有
solutions you can select from many 您可以从许多解决方案中选择
predefined application specific filters 预定义的应用程序专用过滤器
you can design in floating point and 您可以在浮点设计
then convert a fixed point to I trade 然后将固定点转换为我交易
fast and you can visually explore design 快速，您可以直观地探索设计
method and analyze responses also you 方法和分析回应，你也
can generate matlab functions Simulink 可以生成MATLAB函数Simulink
models and C code from the filters so 过滤器的模型和C代码
this example we are going to look at out 这个例子我们要看看
to analyze an ECG signal in the time 分析当时的心电信号
domain an ECG signal looks like this so 域心电图信号看起来像这样
we can see there is a linear trend 我们可以看到线性趋势
associated with the signal so firstly we 与信号相关，所以首先我们
would like to remove that and then we 想要删除它，然后我们
would like to remove the high frequency 想消除高频
components because that doesn't help us 组件，因为那对我们没有帮助
in analyzing the signal and then we 在分析信号之后，我们
would like to compensate the delay 想补偿延迟
introduced by the filter so this is the 由过滤器引入，所以这是
workflow we are going to do for this 我们将为此做的工作流程
example going to MATLAB 转到MATLAB的示例
so firstly we load the signal into 所以首先我们将信号加载到
MATLAB and then we can plot it in the MATLAB，然后我们可以在
time domain as shown in the slides as 时域，如幻灯片所示：
well so firstly as I said we would like 好吧，首先我说过我们想
to remove this linear trend from the 从中删除此线性趋势
signal to do that we can use the D trend 表示可以使用D趋势
function so the D trade function as 因此D交易功能为
shown here simply removes the mean value 此处显示的只是去除平均值
or linear trend from a vector or a 向量或向量的线性趋势
matrix doing that and plotting in the 矩阵这样做并在
time domain again we can see that the 时域再次，我们可以看到
linear trend has been removed okay so 线性趋势已被删除，所以
next we would like to remove all the 接下来，我们要删除所有
high frequency components from the 来自的高频分量
signal in order to design a filter a low 信号以设计一个低
pass filter to do this we'd first like 通过过滤器做到这一点，我们首先要
to know where the useful information of 知道哪里的有用信息
the signal lies so we can use the P 信号存在，所以我们可以使用P
Welch function which would give us a Welch函数，这将使我们
power spectral density estimate so for 功率谱密度估计值
this example we know that the useful 这个例子我们知道有用
information of the ECG signal is only 心电信号信息仅
the low frequency components so we can 低频成分，所以我们可以
design the filter to cut off all 设计过滤器以切断所有
frequencies above about 75 Hertz so 高于约75赫兹的频率
there are two methods to design filters 有两种设计过滤器的方法
using MATLAB the first is a programmable 使用MATLAB首先是可编程的
method where you can specify the 您可以在其中指定
parameters and then use if desired not 参数，然后根据需要使用
low-pass the next is an interactive 低通下一个是互动
method using an app so that this that is 使用应用程序的方法，这就是
what we are going to do in this example 在这个例子中我们要做的是
to show just how easy it is so we can go 展示它是多么容易，所以我们可以去
to apps and then select the filter 到应用程序，然后选择过滤器
designer okay so once in the filter 设计师好的，所以一旦进入过滤器
designer we can specify the parameters 设计师我们可以指定参数
like we want a low-pass filter we are 就像我们想要一个低通滤波器一样
going to use an IR filter for this 为此要使用红外滤光片
example and specify the order as seven 示例，并将订单指定为七个
and then the sampling frequency width 然后是采样频率宽度
for this example is 2000 Hertz 这个例子是2000赫兹
and I specified previously we would like 我之前指定了我们想要的
to cut off at 75 Hertz we can click on 可以在75赫兹处截止
design filter so this gives us the nice 设计过滤器，所以这给我们很好
magnitude response of the filter and you 滤波器和您的幅度响应
can see below so or above rather 75 可以看到下面这样或以上而不是75
Hertz the signal cuts off so we can 赫兹信号切断，所以我们可以
click on these buttons at the top to get 单击顶部的这些按钮以获取
more information of the filter like this 像这样的过滤器的更多信息
just gives in format information you can 只提供格式信息，您可以
see the full TS table and a lot of other 查看完整的TS表以及其他很多
parameters we can see the pole-zero plot 参数我们可以看到零极点图
clicking this button here we can see all 点击这里，我们可以看到所有
the poles and zeros lie within the unit 极点和零点位于单位内
circle so we can see they are stable 圈一下，我们可以看到它们很稳定
here as well 这里也是
you can even see the impulse response of 你甚至可以看到
the filter which looks like this so all 看起来像这样的过滤器
of this information of the filter we can 过滤器的这些信息，我们可以
see by click simply clicking buttons at 只需单击即可查看
the top here which makes it really easy 这里的顶部，这真的很容易
to work and work with and analyze 与之一起工作并进行分析
filters in MATLAB so if we want to use 在MATLAB中进行过滤，因此如果我们想使用
this filter we can click on file exports 这个过滤器，我们可以点击文件导出
we can export it as an object and call 我们可以将其导出为对象并调用
it D for this example okay so to filter 在这个例子中是D，可以过滤
the signal we can just use filter and D 信号，我们可以只使用滤波器和D
the variable we just created and 我们刚刚创建的变量
applying that and plotting the new power 应用并绘制新的力量
spectral density of the signal we can 信号的频谱密度可以
see that above 75 Hertz the signal gets 看到75赫兹以上的信号
attenuated quite considerably so the 衰减相当大，所以
filter did exactly what we expected it 过滤器确实达到了我们的预期
to do and now we can plot the filter in 要做，现在我们可以在
the time domain again and this will give 时域再次，这将给
us this result and we can see that the 我们这个结果，我们可以看到
filter now delayed the signal by some 过滤器现在将信号延迟了一些
margin so in order to remove this delay 保证金，以便消除此延迟
we can use the full fault function which 我们可以使用全部故障功能
is a very funny name but it basically 是一个很有趣的名字，但基本上
just filters the signal 只是过滤信号
in the forward direction and in the 在向前的方向和
backward direction as well and thereby 也是向后的方向
compensating the delay so applying the 补偿延迟，因此应用
fault fault function and plugging the 故障功能和故障排除
signal and time domain again we see that 信号和时域再次我们看到
the delays comes at the fore and only 延迟才是最重要的
the low frequency components are seen in 低频成分可见于
the signal so now we can work with this 信号，所以现在我们可以与此
ECG signal okay this concludes this 心电图信号好，到此结束
example so going back let's have a quick 例子，让我们快速回顾一下
recap we looked at out teaching an ECG 回顾我们看过的心电图教学
signal we visualized the power content 信号我们可视化了电源内容
of the signal we designed and applied a 我们设计并应用的信号
low-pass our filter and we compensate 低通我们的滤波器，我们进行补偿
the delay introduced by the filters 滤波器引入的延迟
[Music] [音乐]
so next we're going to look at two 接下来我们要看两个
common application examples the first is 常见的应用示例首先是
how to detect distorted signal in noise 如何检测噪声中的失真信号
so for this example we are going to look 所以在这个例子中，我们来看一下
at a non linear amplifier that 在非线性放大器上
introduces third order harmonic 引入三阶谐波
distortion so we can model this 失真，所以我们可以对此建模
amplifier by using white noise using the 通过使用
random function and a polynomial of 随机函数和的多项式
order three so for this example the 订购三个，因此在此示例中
sampling frequency is three point six 采样频率是三点六
kill Urtz and the signal is 180 Hertz so 杀死Urtz，信号是180赫兹
creating the amplifier signal and then 创建放大器信号，然后
plotting it over a non noisy signal you 将其绘制在无噪音的信号上
can see this is how it looks with a lot 可以看到很多
of added noise spikes so to work with a 增加的噪声尖峰，以便与
signal again we can plot the power 再次发出信号，我们可以绘制功率
spectral density by using the P Welch 使用P Welch的光谱密度
function this gives us this result so 函数这给我们这个结果，所以
because this is a third order amplifier 因为这是三阶放大器
we know it will give us a DC components 我们知道它将为我们提供直流分量
one fundamental frequency components and 一个基本的频率成分
harmonics of twice and three times the 两倍和三倍的谐波
frequency of the signal so we can see 信号的频率，所以我们可以看到
this but we would like to visualize this 这个，但是我们想想像一下
a bit better so we can use the fine 好一点，所以我们可以用罚款
peaks function again by plotting the 通过绘制
four highest peaks doing that we can 我们可以做到的四个最高峰
verify that the peaks are where we 验证峰在哪里
expect them to be and just to make sure 期望他们成为并只是确保
that we have the right Peaks we can see 可以看到正确的山峰
the components here are DC components 这里的组件是直流组件
fundamental frequency components and 基本频率成分和
then two and three times frequency so it 然后是频率的两倍和三倍
is important to understand how the P 了解P如何重要
Walsh function works if we would like to 如果我们愿意，沃尔什函数可以工作
visualize our data in different ways so 以不同方式可视化我们的数据，因此
the P Wells function divides the signal P Wells功能对信号进行分频
into different segments and then 分成不同的部分，然后
calculates the periodic gram of each 计算每个的周期克
section and then averages by default the 部分，然后默认取平均值
function takes 8 segments with 50% 功能需要8个细分，其中50％
BLAP for 10,000 samples this gives us 10,000个样品的BLAP，这使我们
about two thousand two hundred and 大约2020
twenty two samples per segment if we 如果我们每段有22个样本
decrease this number we can get shorter 减少这个数字我们可以缩短
segments which results in more averaging 细分导致平均
but lower resolution plotting that we 但是以较低的分辨率绘制
can see the signal is smoother but we 可以看到信号更平滑，但是我们
cannot distinguish the harmonics we can 无法区分谐波
increase the number of samples per 增加每个样品的数量
segment and this would give us longer 段，这将使我们更长
segments and high resolution but also 细分和高分辨率，而且
more randomness if we plot that we can 如果我们能画出更多的随机性
see there are higher harmonics but there 看到谐波更高，但是
is at least one spurious high frequency 至少是一个杂散高频
peak that is higher in some of the hair 某些头发的峰值更高
so that concludes this example moving 这样就得出了这个例子的结论
back the last example we're going to 回到最后一个例子，我们要
look at how to remove spikes from a 看看如何从
signal so if we have some if we have the 信号，所以如果我们有一些，如果我们有
open-loop voltage across an analog 模拟量两端的开环电压
instrument in the presence of 60 Hertz 仪器在60赫兹的情况下
power line noise and the signal looks 电源线噪声和信号外观
like this in the time domain we are only 这样的时域我们只是
interested in this open-loop voltage and 对这个开环电压感兴趣
not these transient spikes of the power 不是电源的这些瞬态尖峰
line noise so we can use the mid fault 线路噪声，因此我们可以使用中间故障
one function which is basically a 一个功能，基本上是
nonlinear digital filtering technique 非线性数字滤波技术
that steps through the signal and 穿过信号，
replaces each value of the signal with 将信号的每个值替换为
the median of its neighboring values 其相邻值的中位数
applying the mid fold one function and 应用中折功能
plotting again you can see the results 再次绘图，您可以看到结果
of the signal is just the smooth signal 信号就是平滑信号
and we can work with that very very 我们可以非常非常地合作
simple 简单
moving back then that concludes the last 往回走就结束了最后一个
few examples 几个例子
and is looking at a summary of what we 并正在查看我们的摘要
did today we saw with the signal 今天我们看到了信号
processing toolbox we can perform signal 处理工具箱，我们可以执行信号
generation visualization and measurement 世代可视化和测量
we can do signal transformed from the 我们可以将信号从
time to the frequency domain we can 时间到频域，我们可以
design analog and digital filters to 设计模拟和数字滤波器
implement them can use statistical 实现它们可以使用统计
functions to visualize your data in 功能以可视化方式显示您的数据
different ways and we looked at a power 不同的方式，我们看了一种力量
spectral density estimation algorithm 频谱密度估计算法
namely P Welch this isn't the only 即P Welch这不是唯一
algorithm MATLAB has a lot of different MATLAB的算法有很多不同
power spectral density algorithms but we 功率谱密度算法，但我们
only looked at that one today so you're 今天只看了那个，所以你
probably wondering how can optimum 可能想知道如何优化
solutions help me 解决方案对我有帮助
well optimum solutions is the sole 唯一的最佳解决方案
method X accredited distributor of 方法X的认可经销商
MATLAB and Simulink products in southern 南部的MATLAB和Simulink产品
Africa the company boasts the wide range 非洲公司拥有广泛的业务
of solutions that are tailor-made for 量身定制的解决方案
each problem we also offer training in 每个问题我们也提供培训
all mathworks tools in order to equip 所有MathWorks工具以配备
our clients with skills required to 我们的客户具备所需的技能
solve business problems optimum 解决业务问题最佳
solutions have also have consultants 解决方案也有顾问
that work with clients and project 与客户和项目合作
delivery algorithm development and 传递算法的开发和
reporting using the base software 使用基本软件进行报告
practice the learning paths associated 练习相关的学习路径
with this demo is shown here so learning 这个演示展示在这里，所以学习
path is a collection of skill sets that 路径是技能集的集合，
equip you with the certains competency 使您具备一定的能力
so there are two parts you can take once 所以有两个部分可以一次
you learn about signal processing you 您了解信号处理的知识
can do it with MATLAB or with simulink 可以用MATLAB或simulink完成
for MATLAB you would need the fun MATLAB 对于MATLAB，您将需要有趣的MATLAB
fundamentals which would provide you 可以为您提供的基础知识
with basic training then you can do 经过基础训练，您就可以
signal processing with MATLAB course MATLAB课程进行信号处理
which will provide you with signal 这将为您提供信号
analysis measurement and visualization 分析测量和可视化
techniques and then as a supplementary 技术，然后作为补充
course you can do control system design 当然可以做控制系统设计
with MATLAB and Simulink which would 与MATLAB和Simulink
accelerate the design processes for 加快设计流程
closed-loop control systems if you are 闭环控制系统，如果您是
only interested in the Similan part of 只对Similan部分感兴趣
the course you can do the signal 当然你可以做信号
processing for Simulink and then do the 为Simulink处理，然后执行
control system design of MATLAB and MATLAB的控制系统设计
Simulink course as well Simulink课程
so once we are done here there are a 所以一旦我们在这里完成，
couple of things that you can do if you 如果您可以做几件事
would like to enrich yourself you can 想丰富自己，你可以
click on these links to take you to the 点击这些链接将您带到
math works website where you can look at 数学作品网站，您可以在这里查看
data analysis or algorithm development 数据分析或算法开发
alternatively you can download the trial 或者，您可以下载试用版
of MATLAB if you would like to try some 如果您想尝试一下
of these examples yourself you can also 您自己也可以从这些示例中
ask for support because optimum 寻求支持，因为最佳
solutions provides our customers with 解决方案为我们的客户提供
technical support then we are here to 技术支持，那么我们在这里
help if you have any questions about any 如果您有任何疑问，请提供帮助
field specific issue we really strive to 我们真正致力于解决特定领域的问题
add value to the product and to the 为产品和产品增值
customers you can also visit our website 客户也可以访问我们的网站
and look at the data analytics 然后看一下数据分析
competency and at the training page so 能力和培训页面上的
this concludes this demo I believe I 我相信我的演示到此结束
have made it clear why MATLAB and by 已经清楚了为什么MATLAB和
extension the signal processing toolbox 扩展信号处理工具箱
provide very efficient and intuitive 提供非常有效和直观的
ways to work with data 数据处理方式
there's demos Alicia and some others 有演示艾丽西娅和其他一些
and there are many more to be discovered 还有更多的发现
thank you very much 非常感谢你