- 博客(15)
- 资源 (3)
- 收藏
- 关注
原创 写第一个led程序
第一个led程序汇编指令ldr: 读内存 ldr r0,[r1] 将r1所指向的地址包含的内容写入r0寄存器中str: 写内存 str r0,[r1] 将r0中的值存放到r1所指向的地址中b : 跳转mov:赋值ldr r0,=0x12345678 伪汇编代码(效果是一样的)汇编代码创建一个.S文件.text.global _start_start:...
2019-03-29 20:55:11
333
原创 裸机开发步骤简述
X86架构windows应用程序:建立工程->编辑->编译->运行Ubuntu应用程序:编辑->编译->运行arm架构编辑->编译->烧写->运行编辑用si(source insight)+Notepad编译用arm-linux-gcc编译器烧写多种多样以后补充烧写结束打开电源就可以运行了gcc介绍...
2019-03-29 20:19:41
1983
原创 function的用法()
摘自matlabfunction Add new function.New functions may be added to MATLAB’s vocabulary if theyare expressed in terms of other existing functions. Thecommands and functions that comprise the new funct...
2018-10-23 22:06:37
9905
原创 subs()函数()
摘自matlabUtilities for obsolete MUTOOLS commands.subs 既是目录也是函数。subs Symbolic substitution.subs(S,OLD,NEW) replaces OLD with NEW in the symbolic expression S.OLD is a symbolic variable, a string ...
2018-10-23 20:58:44
9595
原创 diff()函数的用法()
摘自matlabdiff Difference and approximate derivative.diff(X), for a vector X, is [X(2)-X(1) X(3)-X(2) … X(n)-X(n-1)].diff(X), for a matrix X, is the matrix of row differences,[X(2:n,:) - X(1:n-1,:)...
2018-10-23 16:21:31
27759
1
原创 学习matlab第四天(绘图基础)
在matlab中(其实在计算机中)图像的形成是由有限个点组成的,只要点足够密集,就可以近似连成一条直线。plot函数就是用来生成图像的。plot(x,y)>>画出每一个点(xi,yi)。tips:这里的x,y都是一组向量。plot(y)>>画出一组图形:自变量x=1,2,3…,n (n=y向量的长度)当连续做两次画图函数时,第二次会覆盖第一次的图plot(cos...
2018-10-22 23:46:51
1728
原创 error函数()
输出显示行和中止函数error Display message and abort function.error(MSGID, ERRMSG, V1, V2, …) displays a descriptive messageERRMSG when the currently-running program encounters an errorcondition. Depending ...
2018-10-21 15:10:56
10164
原创 sum函数的用法(matlab)
摘自matlabsum Sum of elements.S = sum(X) is the sum of the elements of the vector X. If X is a matrix,S is a row vector with the sum over each column. For N-D arrays,sum(X) operates along the first ...
2018-10-21 15:07:48
6961
原创 for函数的用法(matlab)
摘自matlabfor Repeat statements a specific number of times.The general form of a for statement is: for variable = expr, statement, ..., statement ENDThe columns of the expression are stored on...
2018-10-21 13:43:17
30649
原创 zero函数的用法(matlab)
摘自matlabzeros Zeros array.zeros(N) is an N-by-N matrix of zeros.zeros(M,N) or zeros([M,N]) is an M-by-N matrix of zeros.zeros(M,N,P,...) or zeros([M N P ...]) is an M-by-N-by-P-by-... array of...
2018-10-21 11:59:30
24776
原创 matlab学习第三天。(数据创建,cell,文件保存,读取等)
学习内容对于matlab基本指令进阶变量数值型变量int 8/16/32/64 ()uint 8/16/32/64()single()double()字符型变量用‘ char ’表示,每一个字母在matlab中以Ascll码储存,数字值为0~255之间。比如:a=‘h’;uint16(a);此时输出的是ans=104结构体student.name = ‘John D...
2018-10-18 16:27:33
4436
原创 学习matlab第二天。(结构化程序和自定义函数)
学习内容:1. 将matlab当做一个程序语言来编写程序2. 程序语言(if、else、while等)3. 撰写一个函数,然后调用流程控制指令(Flow control)if、elseif、elseforswitch、caseotherwisebreakcontinueendpausereturn逻辑指令(Logic opera...
2018-10-17 23:24:30
576
原创 嵌入式入门的一些基本知识(第一天)
========================第一天学习内容,有很多自己理解然后写出来的,有错误以后改正文开始:嵌入式系统的特点:1.面向特定的系统应用。2.涉及面相当广、应用到生活的方方面面。3.硬件与软件都有高度的可执行性。4.生命周期相当长(后期系统升级,维护)5.不具备本地开发功能,需要有专门的开发工具与环境。嵌入式操作系统:·实时性是它非常重要的特性。ps:在工业...
2018-10-17 15:45:46
1182
原创 学习matlab第一天。
学习matlab,为了数值分析上机作业= = !(不不不,也是为了科研)学习内容:#一.matlab的计算机使用方法##1.基本的函数用法(大部分直接使用)三角函数,对数函数等等,这些可以上网参考:matlab主要函数指令表link##2.可以直接定义变量,比如把A=10,就是将A这个变量为10,直接写就可以,不用声明。定义的numerical(数字)变量默认是double型(双精度浮点...
2018-10-16 23:47:55
308
牛顿法,牛顿下山,割线法,高斯消去法,列主元高斯消去,LU分解法matlab源程序
2018-11-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人