Understanding The Colon Operator In MATLAB

Understanding The Colon Operator In MATLAB

In MATLAB, the ā€œ:ā€ operator can be used to create vectors, subscript arrays, and specify iterations, making it one of the most useful MATLAB operators. The following example creates a row vector that includes numbers from 1 to 10: 1:10 When MATLAB executes this statement, it returns a row vector containing integers from 1 to … Read more

GDB-Python: The Wizard of GDB Debugging

GDB-Python: The Wizard of GDB Debugging

Hello everyone, today I want to share a super useful debugging tool – the Python extension for GDB! As a Python developer, debugging code is an essential skill. By combining GDB with Python scripts, we can make debugging smarter and more efficient. Let’s explore this powerful debugging tool together! What is GDB-Python? GDB-Python is a … Read more

Embedded Functions in Makefile

Embedded Functions in Makefile

subst String Replacement Function $(subst <from>, <to>, <text>) replaces the <from> string in <text> with <to> and returns the replaced string. SRC:=/mnt/hgfs/share/123 DES:=$(subst /mnt,/root,$(SRC)) #ATTENTION: is, /root not, /root all: @echo $(SRC) @echo $(DES) /mnt/hgfs/share/123 /root/hgfs/share/123 patsubst Pattern String Replacement Function $(patsubst <pattern>, <replacement>, <text>) checks if the words in <text> (separated by spaces, tabs, … Read more

Mastering Python File Handling: 3 Practical Tips

Mastering Python File Handling: 3 Practical Tips

Hello everyone! I’ve noticed many of you struggle with processing a large number of files, so today I’m sharing some practical Python tips to make file handling easy and efficient. Batch Rename Files for Better Management In daily work, we often encounter situations where we need to batch rename files. For example, changing a photo … Read more

Comprehensive Algorithms for MATLAB Plotting

Comprehensive Algorithms for MATLAB Plotting

1. Bar Plot t = -10:1:10; subplot(2,2,1); bar(t, cos(t)); Copy code This creates a vector t containing elements from -10 to 10. In the first subplot, the bar function is used to plot the bar graph of cos(t). The first parameter of the bar function is the x-axis coordinates, and the second parameter is the … Read more

Understanding Variables in CMake

Understanding Variables in CMake

Variables are an important component of CMake scripts, used to control various aspects of the build process. From specifying compiler options to setting installation paths and managing dependencies, the influence of variables can be seen everywhere. This article summarizes the concepts and usage of variables based on the official documentation. Basic Concepts When we mention … Read more

Experience of Developing Cross-Platform Games with Rust

Experience of Developing Cross-Platform Games with Rust

1. Introduction Since being captivated by the MOD magic of Warcraft III in my childhood, I have always had a special affection for game scripting languages. Looking back, developing game levels for Warcraft III using Blizzard’s JASS language, although JASS seems extremely rudimentary from today’s perspective, characterized by static typing and no garbage collection, it … Read more