刘航宇 发布的文章 - 我的学记|刘航宇的博客
首页
📊归档
⏳时光机
📬留言
🐾友链
资助名单
推荐
🎓843课程班
🎵音乐
🏞️壁纸
搜 索
1
【NPN/PNP三极管】放大电路饱和失真和截止失真的区别
13,201 阅读
2
论文写作中如何把word里面所有数字和字母替换为新罗马字体
7,416 阅读
3
【高数】形心计算公式讲解大全
6,845 阅读
4
如何判断运放是工作在线性区还是非线性区
5,423 阅读
5
【1】基于STM32CubeMX-STM32GPIO端口开发
5,322 阅读
🌻微语&随笔
励志美文
我的随笔
写作办公
📖电子&通信
嵌入式&系统
通信&信息处理
编程&脚本笔记
🗜️IC&系统
FPGA&ASIC
VLSI&IC验证
EDA&虚拟机
💻电子&计算机
IP&SOC设计
机器学习
软硬件算法
登录
搜 索
标签搜索
嵌入式
ASIC/FPGA
VLSI
SOC设计
机器学习
天线设计
C/C++
EDA&虚拟机
软件算法
小实验
信号处理
电子线路
通信&射频
随笔
笔试面试
硬件算法
Verilog
软件无线电
Python
DL/ML
刘航宇
嵌入式系统&数字IC爱好者博客
累计撰写
304
篇文章
累计收到
529
条评论
首页
栏目
🌻微语&随笔
励志美文
我的随笔
写作办公
📖电子&通信
嵌入式&系统
通信&信息处理
编程&脚本笔记
🗜️IC&系统
FPGA&ASIC
VLSI&IC验证
EDA&虚拟机
💻电子&计算机
IP&SOC设计
机器学习
软硬件算法
页面
📊归档
⏳时光机
📬留言
🐾友链
资助名单
推荐
🎓843课程班
🎵音乐
🏞️壁纸
用户登录
登录
刘航宇(共304篇)
找到
304
篇与
刘航宇
相关的结果
数字图像处理学习笔记
1.简述SUSAN角点检测算法的原理。对于如下图所示的大的尖角,设计一种估测其角度的方法原理:SUSAN算法是一种直接利用灰度值进行角点检测的算法,它基于一个圆形模板,统计以每个像素为中心的模板邻域的灰度值与中心点灰度值相近点的个数。估测办法:1)先选取半径为R1圆形模板如下图1所示,将选取模板进行在图像的每个像素点上移动;2)当模板核子位于图像中亮度一致的区域内时,SUSAN面积最大,其值为圆形模板的面积,随着模板核子离图像边缘越来越近,其面积越来越小。3) 当模板中心靠近角点时,其面积值进一步减少,当模板中心落在角点上时,其面积达到局部最小值。4) 根据C(r0,r)以及面积占比关系得出角度α1,然后分别选取R2、R3、R4模板重复以上过程,记录角度α2,α3,α4,α等于4个取平均2.简述利用一阶差分算子、二阶差分算子对图像边缘进行检测的依据;边缘检测中,为了减少噪声对边缘检测产生的影响,可采取那些措施?检测依据:边缘是图像上灰度变化最明显的地方,边缘检测利用此特点,对图像各像素点进行求微分或二阶微分来定位边缘像素点。由灰度变化特点,可将边缘类型分为阶梯状、脉冲状和屋顶状三种。对于阶梯状,图像边缘点对应一阶微分图像的峰值和二阶微分图像的零交叉处;对于脉冲状和屋顶状边缘,边缘点对应一阶导数的零交叉和二阶导数的峰值。如图2所示。其中边缘检测算子是利用图像边缘的突变性质来检测边缘的。主要分为两种类型,1)一阶导数为基础的边缘检测算子,通过计算图像的梯度值来检测图像边缘,如:差分边缘检测、Roberts 算子、Sobel 算子、Prewitt 算子;2)二阶导数为基础的边缘检测算子,通过寻求二阶导数中的过零点来检测边缘, 如:Laplacian 算子、LOG 算子、Canny 算子。使用该权值矩阵(高斯核)对图像做“卷积”(协相关,对应位置相乘最后求和得到一点的像素值),得到新的图像矩阵。3.在采用直方图匹配的方法进行图像匹配时,出现如下图所示的结果(原图为彩色)。试分析:图中哪些匹配结果是正确的,哪些是错误的?试设计出避免错误匹配的改进方法。4.图像的数据量与哪些因素有关?试阐述采样与量化所遵循的一般原则答:(1)图像分辨率;采样率;采样值。(2)采样原则:采样是把空域上或时域上连续的图像(模拟图像)转换成离散采样点(像素)集合(数字图像)的操作,这些值可以是均匀间隔也可以是。采样越细,像素越小,越能精细地表现图像。量化原则: 量化是把像素的灰度(浓淡)变换成离散的整数值的操作。量化越细致,灰度级数(浓淡层次)表现越丰富。5.设计一组3×3模板,使其可以用于检测二值图像中的各种角点。6.在图像比例缩放变换中, 如果放大倍数太大, 按照最近邻域法处理会出现马赛克效应。 该问题有无办法解决或改善?如果有,请给出方案。答:有,方案:比例缩放所产生的图像中的像素可能在原图像中找不到相应的像素点,需要进行插值处理。 (1)最邻近法,以最邻近像素插入缺口即可 (2)双线性插值法更好,求出周围4个像素点距离比,根据该比率,由4个领域的像素灰度值进行双线性插值。7.试阐述图像处理学三个层次的基本内容及相互关系。8.试讨论用于图像平滑处理的滤波器与用于图像锐化处理的滤波器之间的区别与联系。答:1.相同点:都能减弱或消除傅里叶空间的某些分量,而不影响或较少影响其他分量,从而达到增强某些频率分量的效果。 2.不同点:频率滤波器减弱或消除了傅里叶空间的高频分量,所以达到了增强某些低频分量、平滑图像中细节的效果。锐化滤波器减弱或消除傅里叶空间的低频分量,所以达到了增强了高频分量、锐化图像中细节效果。 3.联系:两者效果相反,互为补充,从原始图像中减去平滑滤波器的结果得到锐化滤波器的效果,而从原始图像中减去锐化滤波器的结果则可以得到平滑滤波器的效果。9.根据下列要求作图:(1) 画出用1个半径为2的圆形结构元素膨胀1个8×8的正方形的示意图; (2) 画出用1个半径为2的圆形结构元素腐蚀1个8×8的正方形的示意图。结构元素的参考点为圆形结构的中心点。10 对于下图所示的边界,计算其8方向链码及差分链码。有任何问题或者批评建议可以评论留言或者QQ与我交流
2021年05月22日
851 阅读
8 评论
14 点赞
2021-05-22
边界链码、归一化链码与一阶差分链码
链码(又称为freeman码)是用曲线起始点的坐标和边界点方向代码来描述曲线或边界的方法,常被用来在图像处理、计算机图形学、模式识别等领域中表示曲线和区域边界。它是一种边界的编码表示法,将图像中像素的绝对位置转换成了相对位置,用边界方向作为编码依据,为简化边界的描述,一般描述的是边界点集。常用的链码按照中心像素点邻接方向个数的不同,分为4连通链码和8连通链码。4连通链码的邻接点有4个,分别在中心点的上、下、左和右。8连通链码比4连通链码增加了4个斜方向,因为任意一个像素周围均有8个邻接点,而8连通链码正好与像素点的实际情况相符,能够准确地描述中心像素点与其邻接点的信息。因此,8连通链码的使用相对较多。借用百度百科的一幅图: 链码:11076765543322归一化链码:把原链码看作由各方向数构成的自然数,将该码按一个方向循环,使其构成的自然数最小,此时形成归一化链码,也称规格化链码。归一化码=07676554332211一阶差分链码:通过计算相邻两个元素方向变化(逆时针方向)的数字得到。就是前一个数字变化到后一个数字需要经过的步数,注意是逆时针方向,比如1->1经过0步,1->0经过7步,对照8链码图仔细琢磨一下就知道了。一阶差分链码=0777177077070归一化的一阶差分链码:就是对一阶差分链码作归一化处理,即把差分链码链码看作由各方向数构成的自然数,将该码按一个方向循环,使其构成的自然数最小。归一化的一阶差分链码=0700777177077
2021年05月22日
814 阅读
1 评论
3 点赞
2021-05-12
嵌入式第二次测试解答
具体操作流程参考上篇文章: 嵌入式实战—应用open调用内核open,应用close调用内核close通信程序 hello.c需要修改为:#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/cdev.h> #include <linux/kdev_t.h> #include <linux/fs.h> //file_operations MODULE_LICENSE ("GPL"); int i = 10; struct file_operations ops; struct cdev mycdev; int major = 254; int minor = 5; dev_t dev; int j= 0; int k= 0; int open(struct inode *pinode,struct file *pfile) { j++; printk(KERN_INFO "liuhangyu myopen run j= %d\n",j); return 0; } int close(struct inode *pinode,struct file *pfile) { k++; printk(KERN_INFO "liuhangyu myclose run k= %d\n",k); return 0; } void myuart_init(void) { int ret; mycdev.owner=THIS_MODULE; dev = MKDEV(major,minor); ret = register_chrdev_region(dev,5,"myuart"); if(ret==-1) { printk(KERN_INFO "dev cant't use\n"); ret = alloc_chrdev_region(&dev,5,1,"myuart"); //automatic allocation dev if(ret==0) { printk(KERN_INFO "alloc : major= %d\n",MAJOR(dev)); } else { printk(KERN_INFO "alloc error\n"); return ; } } else { printk(KERN_INFO "dev can use\n"); } ops.owner=THIS_MODULE; ops.open=open; ops.release=close; cdev_init(&mycdev,&ops); cdev_add(&mycdev,dev,5); //mycdev send dev,equipment 1 return ; } static int __init hello_init (void) { i ++; myuart_init(); //init printk (KERN_INFO "driver init,i = %d\n",i); return 0; } static void __exit hello_exit (void) { i ++; printk (KERN_INFO "driver exit,i = %d\n",i); unregister_chrdev_region(dev,5); cdev_del(&mycdev); } module_init (hello_init); module_exit (hello_exit);app.c需要修改为#include "stdio.h" #include "fcntl.h" #include "unistd.h" #include "stdlib.h" int main() { int fd; int q = 0; while(1) { fd = open("./myuart",O_RDWR,0777) ; if(fd==-1) { printf("open error\n"); return -1; } q ++; printf("liuhangyu open run q = %d\n",q); sleep (3); close(fd); q ++; printf("liuhangyu close run q = %d\n",q); sleep (3); } return 0; }直接在此输入下面这个命令,才能./app mknod ./myuart c 254 5
2021年05月12日
295 阅读
3 评论
5 点赞
2021-05-11
matlab实现灰度图像边缘提取
实验一:编程实现灰度图像空间域边缘提取,至少包括: 梯度算子、Roberts算子、Sobel算子、拉普拉斯算子及LOG算子,并比较不同算法提取边缘的效果及影响因素代码:f=rgb2gray(imread('D:\图片\image\liuhangyu.jpg')); %更换你的图片地址 T=20;%阈值 [m,n]=size(f); %------梯度法------- f_g=zeros(m,n); for i=2:m-1 for j=2:n-1 f_g(i,j)=abs(f(i+1,j)-f(i,j))+abs(f(i,j+1)-f(i,j)); if f_g(i,j)<T f_g(i,j)=0; else f_g(i,j)=255; end end end figure(1); subplot(2,4,1);imshow(uint8(f_g));title('梯度法'); %------roberts算子------- f_r=zeros(m,n); for i=2:m-1 for j=2:n-1 f_r(i,j)=abs(f(i+1,j+1)-f(i,j))+abs(f(i,j+1)-f(i+1,j)); if f_r(i,j)<T f_r(i,j)=0; else f_r(i,j)=255; end end end %f_r=imbinarize(imfilter(f,r),T); subplot(2,4,2);imshow(uint8(f_r));title('Roberts算子'); %------prewitt算子------- f_p=zeros(m,n); for i=2:m-1 for j=2:n-1 f_p(i,j)=abs(f(i-1,j-1)+f(i,j-1)+f(i+1,j-1)-f(i-1,j+1)-f(i,j+1)-f(i+1,j+1))+abs(f(i+1,j-1)+f(i+1,j)+f(i+1,j+1)-f(i-1,j-1)-f(i-1,j)-f(i-1,j+1)); if f_p(i,j)<15 f_p(i,j)=0; else f_p(i,j)=255; end end end subplot(2,4,3);imshow(uint8(f_p));title('Prewitt算子'); %------sobel算子------- f_s=zeros(m,n); for i=2:m-1 for j=2:n-1 f_s(i,j)=abs(f(i-1,j-1)+2*f(i,j-1)+f(i+1,j-1)-f(i-1,j+1)-2*f(i,j+1)-f(i+1,j+1))+abs(f(i+1,j-1)+2*f(i+1,j)+f(i+1,j+1)-f(i-1,j-1)-2*f(i-1,j)-f(i-1,j+1)); if f_s(i,j)<T f_s(i,j)=0; else f_s(i,j)=255; end end end subplot(2,4,4);imshow(uint8(f_s));title('Sobel算子'); %------krisch算子------- k(:,:,1)=[-3,-3,-3; -3,0,5; -3,5,5]; k(:,:,2)=[-3,-3,5; -3,0,5; -3,-3,5]; k(:,:,3)=[-3,5,5; -3,0,5; -3,-3,-3]; k(:,:,4)=[-3,-3,-3; -3,0,-3; 5,5,5]; k(:,:,5)=[5,5,5; -3,0,-3; -3,-3,-3]; k(:,:,6)=[-3,-3,-3; 5,0,-3; 5,5,-3]; k(:,:,7)=[5,-3,-3; 5,0,-3; 5,-3,-3]; k(:,:,8)=[5,5,-3; 5,0,-3; -3,-3,-3]; kk=zeros(size(f)); I=double(f); for i=1:8 f_k(:,:,i)=conv2(I,k(:,:,i),'same'); kk=max(kk,f_k(:,:,i)); end f_kk=imbinarize(kk,600); subplot(2,4,5);imshow(f_kk);title('Krisch算子'); %------LoG算子------- log1=[0 0 -1 0 0; 0 -1 -2 -1 0; -1 -2 16 -2 -1; 0 -1 -2 -1 0; 0 0 -1 0 0]; f_l=conv2(f,log1,'same'); f_ll=imbinarize(abs(f_l),300); subplot(2,4,6);imshow(f_ll);title('LoG算子'); %------拉普拉斯算子------- I=f; I=im2double(I); [M,N]=size(I); B=zeros(size(I)); for x=2:M-1 for y=2:N-1 B(x,y)=I(x+1,y+1)+I(x-1,y-1)+I(x-1,y+1)+I(x+1,y-1)+I(x+1,y)+I(x-1,y)+I(x,y+1)+I(x,y-1)-8*I(x,y); end end I=im2uint8(I); B=im2uint8(B); subplot(2,4,7);imshow(I);title('原图'); subplot(2,4,8);imshow(B);title('拉普拉斯算子后的图'); 现象:分析:通过比较提取边缘效果,可以发现Roberts算子的边缘定位较准确,但是抗噪声能力较弱。Sobel算子有平滑差分作用,它利用像素临近区域的梯度值来计算一个像素的梯度,然后进行取舍。拉普拉斯高斯算子通过对图像进行微分操作实现边缘检测,所以对离散点和噪声较敏感,可以强化突变,并且保留部分物体内部。实验二:编程实现灰度图像阈值分割,至少包括: 固定阈值分割、最大类间方差(Otsu)方法、最佳熵自动门限方法,并比较不同算法分割的效果及影响因素。代码由于算法复杂,此程序需要执行很长时间如果遇到没反应请等待一会即可tip:担心报错请用下面图片处理I=imread('D:\图片\image\liuhangyu.jpg'); imshow(I); %输出直方图 figure;imhist(I); %人工选定阈值进行分割,选择阈值为120 [width,height]=size(I); T1=120; for i=1:width for j=1:height if(I(i,j)<T1) BW1(i,j)=0; else BW1(i,j)=1; end end end figure;imshow(BW1),title('人工阈值进行分割'); %自动选择阈值 T2=graythresh(I); BW2=im2bw(I,T2);%Otus阈值进行分割 figure;imshow(BW2),title('Otus阈值进行分割'); count = imhist(I); %图像的直方图 [m,n] = size(I); N = m*n; L = 256; count = count/N; %每一个像素的分布概率 for i = 1:L if count(i) ~= 0 st = i-1; break; end end for i = L:-1:1 if count(i) ~= 0 nd = i-1; break; end end f = count(st+1:nd+1); %f是每个灰度出现的概率 size(f); E=[]; for Th = st:nd+1 Hbt = 0; Hwt = 0; Pth = sum(count(1:Th+1)); for i = 0:Th %计算图像背景的熵 Hbt = Hbt-count(i+1)/Pth*log(count(i+1)/Pth+0.01); end for i = Th+1:L-1; %计算图像目标的熵 Hwt = Hwt-count(i+1)/(1-Pth)*log(count(i+1)/(1-Pth)+0.01); end E(Th-st+1) = Hbt+Hwt; end position = find(E==(max(E))); Ht = st+position-100; for i = 1:m for j = 1:n if a(i,j)>Ht a(i,j) = 0; %对图像分割 else a(i,j) = 255; end end end figure,imshow(I),title('最佳熵自动门限方法'); 报错,换上面提示的图片处理实验现象应有5张图,不要出现数组超出
2021年05月11日
590 阅读
3 评论
3 点赞
2021-05-09
嵌入式实战—应用open调用内核open,应用close调用内核close通信程序
应用open调用内核open,应用close调用内核close通信程序1.在TM命令窗口中,不要进入sudo -s,先创建一个普通目录 mkdir liu2.下载已经配置好的Makefile文件(在虚拟机liunx系统浏览器输入tiie.cn网址,找到本文,下载Makefile文件),将这个文件移动到创建的liu文件夹内,如果下载后名称不是Makefile,重命名下载的文件为Makefile::(你懂的) ::(你懂的) 不是我吹,我的云盘下载速度吊打某度云,免费不限速3.进入root模式 ,创建驱动程序: hello.c程序, vim hello.c 注意不要改名字,否则可能会报错,这个makefile配置的是hello.c不能改名字的!!!非高手怕报错,将下面所有东西,全部放在liu文件夹内提示:下面程序直接在liunx浏览器里面复制即可,不用敲,很多同学容易敲错,报错找不到问题所在。程序中liuhangyu可改成你的名字#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/cdev.h> #include <linux/kdev_t.h> #include <linux/fs.h> //file_operations MODULE_LICENSE ("GPL"); int i = 10; struct file_operations ops; struct cdev mycdev; int major = 100; int minor = 1; dev_t dev; int j= 0; int k= 0; int myopen(struct inode *pinode,struct file *pfile) { j++; printk(KERN_INFO "liuhangyu myopen run j= %d\n",j); return 0; } int myclose(struct inode *pinode,struct file *pfile) { k++; printk(KERN_INFO "liuhangyu myclose run k= %d\n",k); return 0; } void liuhangyu_init(void) { int ret; mycdev.owner=THIS_MODULE; dev = MKDEV(major,minor); ret = register_chrdev_region(dev,1,"liuhangyu"); if(ret==-1) { printk(KERN_INFO "dev cant't use\n"); ret = alloc_chrdev_region(&dev,1,1,"liuhangyu"); //automatic allocation dev if(ret==0) { printk(KERN_INFO "alloc : major= %d\n",MAJOR(dev)); } else { printk(KERN_INFO "alloc error\n"); return ; } } else { printk(KERN_INFO "dev can use\n"); } ops.owner=THIS_MODULE; ops.open=myopen; ops.release=myclose; cdev_init(&mycdev,&ops); cdev_add(&mycdev,dev,1); //mycdev send dev,equipment 1 return ; } static int __init hello_init (void) { i ++; liuhangyu_init(); //init printk (KERN_INFO "driver init,i = %d\n",i); return 0; } static void __exit hello_exit (void) { i ++; printk (KERN_INFO "driver exit,i = %d\n",i); unregister_chrdev_region(dev,1); cdev_del(&mycdev); } module_init (hello_init); module_exit (hello_exit); 4.保存下一步分别输入 make 回车 insmod hello.ko回车5.完成后打开第二TM窗口,在同目录下,创建同理app.c程序,这个是应用层程序。#include "stdio.h" #include "fcntl.h" #include "unistd.h" #include "stdlib.h" int main() { int fd; int q = 0; while(1) { fd = open("./liuhangyu",O_RDWR,0777) ; if(fd==-1) { printf("open error\n"); return -1; } q ++; printf("liuhangyu open run q = %d\n",q); sleep (8); close(fd); q ++; printf("liuhangyu close run q = %d\n",q); sleep (8); } return 0; }6.输入 mknod ./liuhangyu c 100 17.输入 gcc -o app app.c8.输入./app观察2个窗口现象,每隔几秒给第一个窗口输入dmesg可以看到通信是成功的以上则完成全部测试,下面讲解退出9.输入键盘敲Ctrl+C强制退出app程序10 分别输入rmmod hello.ko回车,make clean回车好下课!
2021年05月09日
610 阅读
10 评论
11 点赞
2021-05-08
概率论证明样本方差ES^2=DX=σ^2
概率论,如何证明样本方差ES^2=DX=σ^2
2021年05月08日
1,687 阅读
0 评论
13 点赞
2021-05-05
【概率论】自由度为n的卡方分布,t分布,F(m,n)分布的期望和方差
卡方分布:E(X)=n,D(X)=2nt分布:E(X)=0(n>1),D(X)=n/(n-2)(n>2)F(m,n)分布:E(X)=n/(n-2)(n>2)D(X)=[2n^2*(m+n-2)]/m(n-2)^2*(n-4)
2021年05月05日
1,146 阅读
0 评论
4 点赞
2021-05-01
matlab实现灰度图像空间域滤波
实验目的:掌握采用图像灰度图像空间域平滑、去噪的一般方法方法,并编程实现。实验内容:编程实现灰度图像空间域滤波:至少包括 3×3、5×5窗口的均值滤波与中值滤波,并比较不同方案增强后的效果及影响因素。实验平台:Matlab实验代码:%matlab实现灰度图像空间域滤波,自定义窗口的均值、中值、高斯滤波,189064238刘航宇 try %步骤一:彩色、灰度变换 h=imread('D:\图片\image\liu.jpg'); %读入彩色图片 subplot(2,2,1),imshow(h);title('原图'); %显示原图像 c=rgb2gray(h); %把彩色图片转化成灰度图片,256级 subplot(2,2,2),imshow(c),title('原始灰度图象'); %显示原始图象 g=imnoise(c,'gaussian',0.1,0.002); %加入高斯噪声 subplot(2,2,3),imshow(g),title('加入高斯噪声之后的图象'); %显示加入高斯噪声之后的图象 %步骤二:用系统预定义滤波器进行均值滤波 n=input('请输入均值滤波器模板大小\n'); A=fspecial('average',n); %生成系统预定义的3X3滤波器 Y=filter2(A,g)/255; %用生成的滤波器进行滤波,并归一化 figure,imshow(Y),title('用系统函数进行均值滤波后的结果'); %显示滤波后的图象 %步骤三:用Matlab系统函数进行中值滤波 n2=input('请输入中值滤波的模板的大小\n'); Y1=medfilt2(g,[n2 n2]); %调用系统函数进行中值滤波,n2为模板大小 figure,imshow(Y1),title('用Matlab系统函数进行中值滤波之后的结果'); %显示滤波后的图象 %步骤四:用matlab系统函数进行高斯滤波 n3=input('请输入高斯滤波器的均值\n'); k=input('请输入高斯滤波器的方差\n'); A2=fspecial('gaussian',k,n3); %生成高斯序列 Y2=filter2(A2,g)/255; %用生成的高斯序列进行滤波 figure,imshow(Y2),title('用Matlab函数进行高斯滤波之后的结果'); %显示滤波后的图象 catch %捕获异常 disp(lasterr); %如果程序有异常,输出 endps:方差填1,2,3,4任意一个即可步骤及其实验现象:然后输入模板大小然后产生三个图窗然后输入 clc;clear重新输入本代码,完成5*5模板,在此不再赘述。结果分析:请自行上网查询均值、中值、高斯滤波区别、学习。
2021年05月01日
363 阅读
0 评论
5 点赞
2021-04-24
基于DSP实现FIR滤波器实验解答
主频80MHZ,晶振20MHZ,定时125us,4阶滤波器,0.1,0.2,-0.1,-0.2,端口4进8出实现:asm程序 .title "FIR.asm" .mmregs .def _c_int00 STACK .usect "stk",10H .sect "vectors" x .usect "x",4 h .usect "h",4 .bss y,1 PA4 .set 4 PA8 .set 8 .data table .word 1*32768/10 .word 2*32768/10 .word -1*32768/10 .word -2*32768/10 .text _c_int00: LD #0006h,DP STM #STACK+10H,SP SSBX INTM RSBX SXM STM #0825H,PMST STM #0669H,TCR STM #3007H,CLKMD STM #999,PRD STM #008H,IMR STM #0FFFH,IFR SSBX FRCT STM #h,AR2 RPT #3 MVPD table,*AR2+ STM #y,AR5 STM #x+3,AR1 STM #h+3,AR2 STM #3,AR0 STM #x,AR4 FIR: PORTR PA4,*AR3 LD *AR1-,T MPY *AR2-,A ;4 LTD *AR1- MAC *AR2-,A ;3 LTD *AR1- MAC *AR2-,A ;2 LTD *AR1+0 MAC *AR2+0,A ;1 STH A,*AR5 PORTW *AR5,PA8 RETE loop: B loop B _c_int00 nop nop NMT rete nop nop nop SINT17 .space 4*14*16 TIN0: rsbx intm rete NOP NOP .space 4*18*16 TINT: B FIR nop nop .endcmd文件MEMORY {PAGE 0: VECS: origin=0800H,length=0500H PROG: origin=1600H,length=0500H DATA: origin=2400H,length=0500H PAGE 1: BSS: origin=0300H,length=0200H XSPACE: origin=0500H,length=0010H HSPACE: origin=0510H,length=0010H STACK: origin=0600H,length=0500H } SECTIONS { .data :>DATA PAGE 0 .text :>PROG PAGE 0 vector :>VECS PAGE 0 .bss :>BSS PAGE 1 x :>XSPACE PAGE 1 h :>HSPACE PAGE 1 .stk :>STACK PAGE 1 }实验现象:波形:
2021年04月24日
367 阅读
1 评论
2 点赞
2021-04-21
【双语美文】心灵鸡汤学学自信的人都是怎么做的
Anyone can adopt the habits confident people practice on a regular basis. Below are just some of the ways those with extra self-possession approach life differently than everyone else.每个人都能培养自信的人每天做事的习惯,以下就是那些特别镇定自若的人生活中一些与他人不同的做事方法。They're more productive.他们效率更高。Confidence = hustle. Research suggests that confident people may be more productive because their can-do thoughts inspire real action. It's no wonder confident people seem to own the office.信心=抓紧时间。研究显示自信的人可能做事效率更高,因为“我能搞定”的想法鼓励着他们真正行动起来。难怪自信的人看起来好像掌管着整个办公室一样。Their body language helps boost their confidence.他们的肢体语言有助于提高自信。Studies show that how a person carries him or herself influences how he or she feels on the inside. A tall posture and even stretching can help people feel a surge of power -- and confident people take advantage of those little adjustments.研究显示,一个人表达想法的方式影响着其内心的感受。挺拔的姿态、甚至舒展身体都有助于激发力量,自信的人会利用好这一切。They aren't self-assured all the time.他们并不总是自信。All people have their flaws. The difference lies in recognizing those insecurities and carrying on with life despite them. Research shows self-acceptance is paramount to a happier life, but it's a habit many people rarely practice. Confident people aren't superhuman -- they just accept their imperfections wholeheartedly and live a happy life regardless.所有人都有缺点,区别就在于要认清不安全的因素,并且继续生活。研究显示,自我接受是生活更幸福的关键,但这也是很多人所缺少的习惯。自信的人不是超人——他们只是真正接受自己的不完美并过着幸福生活,而不去考虑那些。They actively pursue success.他们真的在追求成功。"No" is simply not in a confident person's vocabulary, at least when it comes to success. Confidence is crucial when pursing a career, according to a study published in the journal Basic and Applied Social Psychology. The research found that the more likely someone is able to picture themselves achieving their goal, the more likely they're going to be able to do it.对于自信的人来说,他们的字典里真的没有“不”这个字,至少在谈及成功时如此。发表在《基础与应用社会心理学》杂志上的研究表明,信心在追求事业时起到决定性作用。这项研究发现,一个人越能幻想自己达成目标,就越有可能获得成功。They channel their inner celebrity.他们引导自己向内心的名人看齐。A confident person's mantra is "I am Beyonce." OK, maybe that's just this author's, but regardless, there's power in celebrity. Research published in the journal Personal Relationships found that when people wrote down qualities they shared with their favorite celebrities of the same gender, they felt much more compelled to become their best selves.自信之人的咒语是“我是碧昂斯(美国女歌手)”。好吧,可能那只是本作者的想法,但不管怎样,名人效应总是有的。发表在《人际关系》杂志上的研究发现,当人们写下与自己最喜欢的同性别名人所共有的品格时,他们会迫使自己做到最好。They stick to their convictions.他们坚持自己的信念。Confident people place trust in their own opinions -- but not without listening to others, of course. As confidence coach Susie Moore explained in a HuffPost blog, confident people hear all sides of an argument, but ultimately, they stick to what they feel is best.自信的人信赖自己的想法——当然也不是不听人劝。正如自信导师苏西•摩尔在赫芬顿邮报博客中写道:自信的人会倾听辩论双方的观点,但最终他们会坚持自己看来最好的想法。"Confident people listen to other people but do not let their difference of perspective take them off track," she wrote.她写道:“自信的人听别人的说法,但不会让他们观点之间的不同带自己偏离轨道。”They don't fear failure.他们不害怕失败。All people have their setbacks. Confidence isn't doing everything right, it's pushing on even after being wrong. Research suggests that people who appear more self-assured are also seem more intelligent.所有人都会遇到挫折,自信不是做对每件事,而是在做错后仍能勇往直前,研究表明看起来自信的人也似乎更聪明。They're not afraid of being confident.他们不害怕自信。Confident individuals don't shy away from asserting themselves, whether they're actually feeling comfortable or just faking it until they make it. As singer Demi Lovato's recent single so poignantly asks, "What's wrong with being confident?" The answer: Nothing at all.自信的人不会羞于坚持自己的主张,无论他们是真自信还是假装自信,他们都会坚持如此直到成功。正如歌手黛米•洛瓦特最近的单曲中寓意深刻地问道的那样:“自信有错吗?”答案就是:“何错之有”。
2021年04月21日
588 阅读
2 评论
2 点赞
2021-04-19
合同矩阵、二次型满足C^TAC=B求可逆矩阵C一种简单求法
合同矩阵、二次型满足C^TAC=B求可逆矩阵C一种简单求法例题:设A=[0 1 1;1 2 1;1 1 0],B=[2 1 1;1 0 1;1 1 0]求可逆矩阵C使得C^TAC=B?解答:观察A =0 1 11 2 11 1 0B =2 1 11 0 11 1 0A交换1,2行, 交换1,2列即得B左乘变行右乘变列所以将单位阵进行对应变化 C =0 1 01 0 00 0 1满足C^TAC=B
2021年04月19日
1,588 阅读
1 评论
2 点赞
2021-04-18
爱要及时说出口【双语美文】
There was once a guy who suffered from cancer, a cancer that can't be cured. He was 18 years old and he could die anytime. All his life, he was stuck in his house being taken cared by his mother. He never went outside but he was sick of staying home and wanted to go out for once. So he asked his mother and she gave him permission.曾有一男孩,患了不治之癌。他才18岁,但生命随时会结束。一直以来,男孩都被困在屋子里,由他的母亲照料。男孩从未出去过,但他厌倦了一直窝在家里,想出去走一走。男孩因此询问他的母亲,并得到了母亲的同意。He walked down his block and found a lot of stores. He passed a CD store and looked through the front door for a second as he walked. He stopped and went back to look into the store. He saw a beautiful girl about his age and he knew it was love at first sight. He opened the door and walked in, not looking at anything else but her. He walked closer and closer until he was finally at the front desk where she sat.男孩出了门,路过了许多家店。经过一家卖CD的音像店时他看了眼前门。男孩停了下来,并走回去又往店里看了看。他看见一个漂亮的女孩,年龄大约和他一般大。男孩意识到他一眼就爱上了这女孩。他打开了这家店的门,走了进去,什么也不看,就只看着她。男孩越走越近,直到来到这女孩坐着的前台。She looked up and asked, "Can I help you?"女孩抬起头来问道:“有什么需要帮忙的吗?”She smiled and he thought it was the most beautiful smile he has ever seen before and wanted to kiss her right there.女孩笑了笑,男孩认为这是他见过的最美丽的笑容,他甚至想当场就亲吻这女孩。He said, "Uh... Yeah... Umm... I would like to buy a CD."他说道:“呃…是的…嗯…我想买张CD。”He picked one out and gave her money for it.男孩随便挑了一张出来并把钱递给女孩。"Would you like me to wrap it for you?" she asked, smiling her cute smile again.“需要我帮你把它包起来吗?”女孩问,脸上又露出可爱的微笑。He nodded and she went to the back. She came back with the wrapped CD and gave it to him. He took it and walked out of the store.男孩点了点头,女孩走到前台的后面。回来的时候女孩拿着包装好了的CD,交给了男孩。他拿了过来,然后走出了这家店。He went home and from then on, he went to that store every day and bought a CD, and she wrapped it for him. He took the CD home and put it in his closet. He was still too shy to ask her out and he really wanted to but he couldn't. His mother found out about this and told him to just ask her. So the next day, he took all his courage and went to the store as usual. He bought a CD like he did every day and once again she went to the back of the store and came back with it wrapped. He took it and when she wasn't looking, he left his phone number on the desk and ran out...男孩回到了家。从那以后,他每天都会来这家店,买一张CD,然后女孩就给他包装起来。男孩把CD带回家,放进他的衣橱里。他还是很害羞,不敢把她约出来。他真的很想,但是他做不到。男孩的母亲知道了此事后,就告诉他,只管把她约出来就好了。于是第二天,男孩鼓起了全部的勇气,像往常一样来到了店里。像过去那样,他还是买了一张CD,而女孩也还是走到后面,回来的时候再把包装好的CD交给他。男孩接了过来,趁女孩不注意,他把他的电话号码留在了桌子上,然后跑了出去…RRRRRING!!!“铃铃铃铃铃铃…”One day the phone rang, and the mother picked it up and said, "Hello?"一天,电话响了起来。男孩的母亲接起电话说道,“你好?”It was the girl!!! The mother started to cry and said, "You don’t know? He passed away yesterday..."是那个女孩!!!男孩的母亲开始哭了起来,说道:“你不知道吗?他昨天就去世了…”The line was quiet except for the cries of the boy's mother. Later in the day, the mother went into the boy's room because she wanted to remember him. She thought she would start by looking at his clothes. So she opened the closet.电话里安静了下来,只听到男孩母亲啜泣的声音。之后,男孩的母亲来到了他的房间,缅怀她的儿子。男孩的母亲想先看一看男孩的衣物。于是她打开了男孩的衣柜。She was face to face with piles and piles and piles of unopened CDs. She was surprised to find all these CDs and she picked one up and sat down on the bed and she started to open one. Inside, there was a CD and as she took it out of the wrapper, out fell a piece of paper. The mother picked it up and started to read it. It said: Hi... I think U R really cute. Do u wanna go out with me? Love, Jocelyn.在她的面前,是一摞又一摞的CD。看到这么多的CD,男孩的母亲感到很惊讶。她随手拿出一张,坐在了男孩床上。她拆开了包装,把CD拿了出来。一张纸条掉了出来。男孩的母亲捡起了纸条,开始读起来。上面写着:你好…我觉得你真的很可爱。你想和我出去约会吗?爱你的,乔瑟琳。The mother was deeply moved and opened another CD...男孩的母亲被深深打动了,拆开了另一张CD…Again there was a piece of paper. It said: Hi... I think U R really cute. Do u wanna go out with me? Love, Jocelyn.又发现了另一张纸条。上面写着:你好…我觉得你真的很可爱。你想和我出去约会吗?爱你的,乔瑟琳。Love is... when you've had a huge fight but then decide to put aside your egos, hold hands and say, "I Love You." 爱就是…当你万般挣扎过后,把自我放到一边,握住对方的手,说:“我爱你。”
2021年04月18日
288 阅读
4 评论
2 点赞
1
...
18
19
20
...
26