1. meshgrid function
When using MATLAB to draw 3D graphics, some sample points are often needed, and then the graphics are drawn based on the sample points. The meshgrid function is a function used to generate grid sample points, as shown in the following examples:
Run result: The result is shown in ...
Posted on Fri, 24 Sep 2021 13:14:11 -0400 by Mistah Roth
Advanced applications of NumPy
Import of package, Chinese font setting and image definition setting on image
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['STfangsong']
plt.rcParams['axes.unicode_minus'] = False
%config InlineBackend.figure_format = 'svg'
Posted on Fri, 17 Sep 2021 15:47:42 -0400 by skripty
1, Introduction to cellular automata
Development of cellular automata The original cellular automata was proposed by von Neumann in the 1950s to simulate the self replication of biological cells, but it has not been paid attention to by the academic community In 1970, after John Horton Conway of Cambridge University designed a computer game &q ...
Posted on Mon, 13 Sep 2021 19:15:55 -0400 by Xiphoid8
Competition Links A - Super-palindrome Topic: Given a string, you can change any letter at a time, and find the minimum number of operations to make all odd-length substrings palindrome strings Title Analysis: Check-in questions, as an example shows, strings that meet the requirements must match both odd and even numbers of characters equally ...
Posted on Sun, 12 Sep 2021 12:27:18 -0400 by goodgeneguo
Introduction to 1 NMF
NMF(Non-negative matrix factorization), that is, for any given non-negative matrix V, it can find a non-negative matrix W and a non-negative matrix H, satisfying the condition V=W*H, thus decomposing a non-negative matrix into the product of left and right two non-negative matrices.
In this case, each column of the V ...
Posted on Sat, 11 Sep 2021 14:01:27 -0400 by neuroxik
Last class, we can draw straight lines, but it's not enough. The models are composed of triangular surfaces, so this time we need to draw triangular surfaces and eliminate the surfaces we can't see.
Dmitry V. Sokolov gamma formula Games101 rasterization (discretization of triangles) Games101 shading (interpolation, advanced text ...
Posted on Wed, 08 Sep 2021 03:54:06 -0400 by mailtome
Shortest distance from point to line
///The trigonometric function method calculates the square of the shortest vertical distance from X to the straight line x0 as the starting point and u as the unit vector
///< param name = "x0" > starting point < / param > ...
Posted on Wed, 08 Sep 2021 00:58:38 -0400 by ranam
1. Introduction to Particle Swarm Optimization
Particle swarm optimization (PSO) was proposed by Dr. Eberhart and Dr. Kennedy in 1995. It originated from the study of bird predation behavior.Its basic core is to make use of the sharing of information by individuals in the group so that the movement of the whole group can evolve fro ...
Posted on Sun, 05 Sep 2021 02:24:06 -0400 by bizshop