
MATLAB
Dld_ML_Blog
Here is my introduction.
展开
-
Bernoulli Single-Server Queuing Process--Solve Steady state equation (Matlab)
例题如下:求解对应的matlab代码:close all; clc; clear all;%初始化与参数P_A = 1./6%到达概率P_S = 1./4%服务概率rankk = 3;%需要考虑的元素个数(矩阵的边长)%%P=[(1-P_A) P_A 0 0; (1-P_A).*P_S (1-P_A).*(1-P_S)+(P_A.*P_S) P_A.*(1-P_S...原创 2020-04-13 08:16:12 · 292 阅读 · 0 评论 -
matlab 图像并列显示
clcclearclose all;f=imread('12471543903363_.pic.jpg'); f2=im2double(f); w=fspecial('laplacian',0);g1=imfilter(f,w,'replicate');g=f-g1;% figuresubplot(1,2,1)imshow(f);% figuresubplot(1,2,...原创 2018-12-04 14:42:03 · 3963 阅读 · 0 评论 -
matlab 画图并标注
clear all;clc;close all;f=@(x)-x.*log(x);s=integral(f,1,2);x=0:0.001:1;y=f(x);plot(x,y,'Linewidth',2);grid on;xlabel('x');ylabel('p');hold on;p=find(y==max(y));%text(x(p),y(p),'*','color','r...原创 2018-11-01 15:11:57 · 11406 阅读 · 0 评论 -
2018 国赛B题 CNC生产调度
clc;clear all;%duanlianda MCMCU8%%定义常量存储矩阵 以第一组为例MT_N=[20 33 46]%【MT_1 MT_2 MT_3 】T_NN=[560 400 378]%【T_11 T_21 T_22】TJO=[28 31]%【TJ TO】TW=25%【物料清洗所需时间】ErrorRat=0.01%故障率Timer=0;%总体时钟记录器total...原创 2018-09-14 22:10:22 · 2929 阅读 · 4 评论 -
骨密度诊断MATLAB(未完待续。。。)
数据说明:对数据的Tscore与骨骼密度进行回归加载数据与数据可视化:clc;clear all;close all;filename = 'rawdata.xlsx';%%% 初筛sheet = 1;% xlRange = 'B2:C3';dataframe1_chushai = xlsread(filename,sheet);%%% 附筛sheet = 2;% xlRan...原创 2018-06-22 18:33:18 · 550 阅读 · 0 评论 -
基于反向传播神经网络(BPNN)的气体识别
%BP neural network for the senor array%The input matricesm=[0.909 0.646 0.604 0.611 0.600 0.801 1.128 2.6141.132 0.645 0.609 0.608 0.600 0.813 1.128 2.6151.351 0.647 0.606 0.612 0.600 0.824 1.127 ...原创 2018-05-30 19:54:04 · 1949 阅读 · 0 评论 -
卡尔曼滤波
clc;clear all; close all;%%%---------------卡尔曼滤波-----------------%-----说明%X(k+1)=Ak*X(k)+W(k);%Y(k)=Ck*X(k)+V(k)%%clear;clc;%基本参数值Ak=exp(-0.02);Ck=1;Qk=1-exp(-0.04);Rk=1;%初始值设置X0=0;P0=1;%...原创 2018-05-30 18:27:01 · 406 阅读 · 0 评论 -
MATLAB基本操作与图像处理
C11E=eye(3,3);R=rand(3,2);S=[2 0;0 4];O=zeros(2,3);A=[E,R+R*S;O S^2]C=A*A;B=C结果:>> C11E = 1 0 0 0 1 0 0 0 1R = 0.9572 0.1419 0.4854 0.4218 0.8003 0.9157S = 2 0 0 4O = 0...原创 2018-05-24 08:59:06 · 1386 阅读 · 0 评论 -
Matlab研究方向向量长度与 (方向向量*原始向量)结果的关系
方向向量与原始向量做乘法会将原始向量旋转并做一个缩放。以下使用matlab固定方向向量长度不变,探究其长度对乘积结果的影响close all;clc;clear all;for i=1:5 subplot(1,5,i)plotDir( i)endfunction [ ] = plotDir( Dirlen )%UNTITLED2 Summary of this functio...原创 2018-05-28 15:22:30 · 2555 阅读 · 0 评论 -
MATLAB图像处理
clc;clear allclose all;T=imread('f1.jpg');%读入电极图像M=imresize(T,[256 256]);%将图像调整256×256,为了显示方便YT=rgb2gray(M);%将RGB 格式转换为灰度图像%Figure(),%figuresubplot(2,5,1)imshow(YT);title('Original Pic');...原创 2018-05-23 16:34:10 · 398 阅读 · 0 评论 -
MATLAB向量画图
close all;clc;clear all;testpoint=[2 0];original=[0 0];% plotdirextion=[3,3];quiver(0,0,testpoint(1),testpoint(2),'g','LineWidth',2);hold on;quiver(0,0,dirextion(1),dirextion(2),'r','LineWidth'...原创 2018-05-27 21:44:11 · 13326 阅读 · 2 评论 -
使用python中的numpy 搭建神经网络
python版本2.7 复制黏贴到py文件中即可运行 使用python语言(不使用机器学习库)搭建神经网络 # coding:utf-8import numpy as npfrom matplotlib import pyplot as pltdef divDebugWindow(): print('==================...原创 2018-04-24 17:43:45 · 1090 阅读 · 0 评论 -
元胞自动机 森林感染模拟 interesting_demo 美赛模拟训练模拟纽约森林灰树感染,包含地图图像处理
% simulate forest infection with cellular automata% duanliandag@gmail.com% January 13 2018 % close all;%close windows[v R C]=detectree();n = min(R,C);%matrix size+++++++++++++++++++++++++iterati...原创 2018-05-10 11:39:14 · 2661 阅读 · 3 评论 -
MCM2018_partial_Coding_B_H
clc;clear all;close all;SimulationYear=50;% ========================SIMULATION===========================%%UNIT: million%SimulationYear :Year of simulation transEvaSet={'High','Medium','Low'...原创 2018-05-10 11:33:19 · 142 阅读 · 0 评论 -
2018SZB-B 暴力搜索拓扑结构
clc;clear all;close all;%初始化dataSize=13;rand('state',1);K=1;dataFrame=rand(dataSize,2).*0.2;% plot(dataFrame(:,1)',dataFrame(:,2),'x');CATEGORY = zeros(dataSize,5);%单个站点状态描述矩阵(4个特征)categoryId =...原创 2018-05-10 11:30:59 · 706 阅读 · 1 评论