# MATLAB

## [MATLAB] Image binarization (imbinarize function)

[ [MATLAB] ] Image binarization (imbinarize function) Image [Binarization] Hint in MATLAB 2019: It is recommended to use ‘imbinarize’ instead of ‘im2bw’. So I specially summarize the usage of im2bw and imbinarize. The ‘im2bw’ function is not recommended since R2016a, as shown below: The MATLAB code is as follows: % old im2bw srcImage = imread('Original …

## Solving Linear Equations Based on MATLAB (with complete code and examples)

Table of contents foreword 1. Direct solution: matrix division Example 1 Example 2 Example 3 2. Direct solution: judgment solution 2.1 m=n and rank(A)=rank(C)=n 2.2 rank(A)=rank(C)=r<> Example 5 2.3 3. Matrix inversion to solve linear equations Example 6 foreword There are many direct solutions to linear [equations , including] Gauss elimination , pivot elimination , …

## Simulated Annealing Algorithm to Solve TSP Problem

The traveling salesman problem (TSP) represents a class of combinatorial optimization problems. It has important engineering and theoretical value in logistics distribution, computer networks, electronic maps, traffic guidance, electrical wiring, etc., and has attracted the attention of many scholars. TSP is simply described as: a businessman wants to go to n different cities to sell …

## Signal time domain statistical analysis—matlab

[Time domain] analysis is to analyze and process signals in the time domain. Common time domain analysis includes statistical analysis, autocorrelation analysis and cross-correlation analysis. Statistical analysis is mainly listed here: common statistical analysis parameters are: maximum value, effective value, peak value, average value, variance, root mean square, form factor, margin, impact index, kurtosis and …

## PLUTO image communication simulation based on QPSK modulation (the original work of Western Dentsu)

Simulation of PLUTO Image Communication Based on QPSK Modulation The principle work of Western Electric Communication ( it is recommended to debug the code in MATLAB while reading the article, and understand the operation of the system through the conversion of the data length and type of variables in the workspace ) The specific code, …

## Matlab solves ordinary differential equations using ode45 solver

introduction The full name of ode is the abbreviation of Ordinary differential equations ( [ordinary differential equations ).].] ode45 is an ordinary differential equation solver, which uses the intermediate-order solution of the Runge-Kutta solution; ode45 is Nonstiff (non-stiff problem) differential equation. Note: In most cases, it is necessary to transform the higher-order differential equations into …

## matlab plot color RGB

Table of contents 1. Color values ​​in MATLAB 2. Common colors 3.matlab code This article is reproduced in [/p/46af0b95ead7?tdsourcetag=s_pctim_aiomsg] 1. Color values ​​in [MATLAB] 2. Common colors 3.matlab code semilogy(SNRs,mse,'Color',[0.63,0.13,0.94],'LineWidth',1.5);

## matlab output dynamic gif picture

Sometimes [matlab] encounters problems and wants to speak in the group and ask for advice. As a result, the group is not allowed to upload video files. At this time, we can consider turning the problems encountered into gif pictures for the big guys to see. 1. Draw a picture x = []; y = …

## Image Segmentation – Iterative Threshold Segmentation

Algorithm steps: (1) The difference dt between the predefined two [thresholds] The difference dt between the predefined two [thresholds] (2) Select the initial threshold T0 (usually the average gray level of the image) (3) Use T to divide the image into two groups, G1 and G2. G1 consists of all pixels whose gray value is …

## Five methods of reading excel file in matlab

readcell(filename), import all information in cell (cell array, note: access cell elements with {}) format, spaces are recognized as missing. Used tostrcmp(class(references{2,3}),’missing’) judge empty, if it is 1, it means empty. The easiest way. [NUM,TXT,RAW]=xlsread(filename)NUM returns the data in excel, TXT outputs text content, and RAW outputs unprocessed data. In general, we directly use reference=xlsread(‘example’)it …