
数学
夏天啵啵雨
这个作者很懒,什么都没留下…
展开
-
MATLAB教程(二):结构化程式与函数
1、Script Editor use command clear all to remove privious variables use command clear all to close all figures use semicolon ; at the end of commands to inhibit unwanted output use ellipsis ...原创 2019-07-01 21:06:33 · 982 阅读 · 0 评论 -
MATLAB教程(三):变量与文件存取
1. 变量类型 logical:0/1 char:单字元 如‘h’ ASCII 0~255 whos查看数据类型 string:多字元 如‘example’ %tip:string connection s1='example'; s2='string' s3 = [s1 s2]; %换成s3 = [s1;s2]可吗?为什么? numeric(single.double(默认).int8/16...原创 2019-07-02 15:49:22 · 921 阅读 · 0 评论 -
MATLAB教程(四):基础绘图
1. 绘图要素 自变量 x = linspace(x1,x2); 函数体 y = sin(x); 标注:[ ]label() x轴: xlabel(‘str’); y轴:ylabel(‘str’); 表头:title(‘str’); 槽: plot(x,y); plot(y); %x为1,2,3… plot(x1,y1,‘str’,…,xn,yn,‘str’); 或者 hold ...原创 2019-07-03 01:18:08 · 734 阅读 · 0 评论 -
MATLAB教程(一):基本操作与矩阵输入
1. MATLAB运算 操作符:+ - * / ^ 运算结果被存放在一个叫ans的临时变量中 不清楚怎么表达可以搜matlab官网的inference 嵌套运算:sin(cos(pi))可以分开计算为cos(pi) sin(ans),从而使表达式更简洁。 2. 变量 定义:A=10 //不可以写成10=A 优先级:自定义变量的优先级最高,为了不覆盖原来的意义,应避免用matlab保留...原创 2019-06-28 20:30:18 · 3932 阅读 · 2 评论