![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab学习
海滩超人
软件开发工程师
展开
-
C语言中对数组,指针,下标,的理解
# C语言中,对一维数组的指针的下标的理解解决问题:1.数组的意义和类型2.数组名的类型和意义3.指向数组的指针的意义4.指针加下标的意义例:一、 int a[10];1、a[10]是数组,其中类型是整型。2、a是数组名,它的值是指针常量,即数组第一个元素的地址,类型取决于数组元素的类型。此例中,a 的意义“指向int的 常量指针”。(大多数情况下,数...原创 2019-08-07 21:09:05 · 3493 阅读 · 2 评论 -
数据结构--链式存储的两个有序表合并的纯C语言实现。
#include<stdlib.h>#include<stdio.h>typedef int Status; //Status是函数的类型,其值是函数结果状态代码,如OK等#define OK 1#define ERROR 0 typedef struct Node{ //定义 int a; struct Node*next; //...原创 2019-12-05 23:27:07 · 1326 阅读 · 1 评论 -
聚类分析:K-means聚类
原创 2020-09-04 11:13:32 · 213 阅读 · 0 评论 -
matlab12非参数统计
原创 2020-08-05 20:10:49 · 229 阅读 · 0 评论 -
matlab12相关系数
原创 2020-07-18 20:44:41 · 124 阅读 · 0 评论 -
matlab11马尔可夫链预测
原创 2020-07-15 19:54:39 · 2522 阅读 · 0 评论 -
matlab10.ARMA
原创 2020-07-13 20:36:54 · 163 阅读 · 0 评论 -
matlab9时间序列分析建模步骤
原创 2020-07-12 20:18:42 · 1391 阅读 · 0 评论 -
matlab8灰色系统与新陈代谢预测
原创 2020-07-11 22:27:20 · 1759 阅读 · 1 评论 -
matlab 7. 回归预测实例
对x=[1.85 1.37 1.02 0.75 0.56 0.41 0.31 0.23 0.17]进行回归与预测x=[1.85 1.37 1.02 0.75 0.56 0.41 0.31 0.23 0.17];x=x'; %要换为列向量alpha=0.05; %设置显著性水平[mu,sigma]=normfit(x);p1=no原创 2020-07-09 22:15:50 · 7824 阅读 · 2 评论 -
matlab6.回归
示例:clear;clc;x = [3.5 1.8 2.4 3.0 3.5 3.9 4.4 4.8 5.0];y = [8.5 2.57 3.0 5.3 8.9 11.69 13.1 13.6 13.3];stats=reglm(y,x,'linear'); %调用reglm函数,自定义的函数做一元线性回归[xsort,id]=sort(x); %对x进行默认为升序的排列ysort=y(id); %对y做相应的排列,按照x的顺序plot(xsor原创 2020-07-08 21:26:33 · 1904 阅读 · 6 评论 -
matlab5.白噪声检验
案例:x = [97 130 156.5 135.2 137.7 180.5 205.2 190 188.6 196.7 180.3 210.8 196 223 238.2 263.5 292.6 317 335.4 327 321.9 353.5 397.8 436.8 465.7 476.7 462.6 460.8 501.8 501.5 487.5 542.3 512 559.8 542 567];figure;subplot(1,2,1) %一行二列的第一个图plot(x);原创 2020-07-07 22:04:31 · 10173 阅读 · 12 评论 -
matlab平稳性检验实例
%构建两个序列进行检测t = (1:100)';y1 = randn(100,1); %按照均匀分布生成的,所以是平稳的。;y2 = randn(100,1) + .2*t;plot(t,y1,t,y2);adftest(y1) adftest(y2)ans = 1 %1代表平稳ans = 0...原创 2020-07-07 16:24:06 · 9239 阅读 · 2 评论 -
matlab 4.单序列数据正态性检验K-S方法
正态性作图:密度函数pdf>> x=50:150;>> y=normpdf(x,100,5);>> plot(x,y);>> hold on; %使得图像具有刷新能力>> y2=normpdf(x,100,10);>> plot(x,y2);>> legend('sigma=5','sigma=10'); %标两个标志>原创 2020-07-05 23:03:43 · 4307 阅读 · 1 评论 -
matlab3.条件语句
1.switch语句switch 表达式… case 条件… 语句…case 条件语句…otherwise语句end编辑器:function[t]=wendu(x) switch fix(x/100) %取整 case{0,1} rate=0; case{2,3,4} rate=3/100; case num2cell(5:9) %取5-9 rate=5/100; case num2cell(10:原创 2020-07-01 23:25:41 · 545 阅读 · 0 评论 -
matlab2.m文件
命令文件:r=input('输入r'); %要有;号s=pi*r.*rp=2*pi*r命令行:>> r=input('输入r');s=pi*r.*rp=2*pi*r输入r1s = 3.1416p = 6.2832函数文件:编辑器:```function[s,p]=wendu(r)s=pi*r.*r;p=2*pi*r;命令行: clear>> a=1:1:5;>> [s,p]=wendu(a)s.原创 2020-07-01 14:14:35 · 167 阅读 · 0 评论 -
matlab1.命令与操作
原创 2020-07-01 13:27:33 · 76 阅读 · 0 评论