How to Publish C, C++, lib, dll Files from MATLAB Functions

How to Publish C, C++, lib, dll Files from MATLAB Functions

MATLAB, as a high-performance numerical computing and visualization software, is widely used in various fields; it integrates numerical computation, symbolic computation, data visualization, and algorithm development, and is particularly suitable for matrix operations, algorithm implementation, and data analysis. This raises a question: with such outstanding computational capabilities, how can MATLAB, which easily handles complex formulas … Read more

Complete Source Code | Cross-Platform Logging Library in C Language for Enterprise Development

Complete Source Code | Cross-Platform Logging Library in C Language for Enterprise Development

Recommended Reading Understand “Stack Overflow” and “Heap Overflow” in C Language, the most straightforward explanation on the internet GitHub stars 88.9K, 9 amazing open-source projects! Latest C Language interview questions summary PDF detailed version Do you understand the original code, inverse code, and complement code? From essence to implementation, let’s talk about what C and … Read more

Detailed Notes and Exercises on Data Structures (C Language Version) by Yan Weimin (Including Past Exam Questions)

Detailed Notes and Exercises on Data Structures (C Language Version) by Yan Weimin (Including Past Exam Questions)

Detailed Notes and Exercises on Data Structures (C Language Version) by Yan Weimin (Including Past Exam Questions). https://pan.quark.cn/s/1a90fe9acbff Detailed Notes and Exercises on Data Structures (2nd Edition) by Yan Weimin (Including Past Exam Questions). https://pan.quark.cn/s/ab430d044884

Method for Converting Decimal to Octal and Hexadecimal in C Language

Method for Converting Decimal to Octal and Hexadecimal in C Language

Through the program, we can quickly calculate the representation of a decimal number in other bases. This article provides C language code for converting decimal to octal and hexadecimal.C language code. SinceC language conversion to binary is relatively complex, we will write about it at another time. #define _CRT_SECURE_NO_WARNINGS#include <stdio.h> int main() { int a; … Read more

The Compilation Process of C Language

The Compilation Process of C Language

The compilation and linking process of C language converts the source code of a C program we write into executable code that can run on hardware, requiring compilation and linking.The process is illustrated as follows: This article explains the work done during the C language compilation process, which is helpful for understanding the workings of … Read more

Quick Reference for Linux and C Language Basics

Quick Reference for Linux and C Language Basics

This is a clean version of notes compiled from classroom/self-study, covering commonly used Linux commands, the minimal structure of C programs, input/output, and formatting placeholders, along with directly runnable example code. 1. Quick Reference for Common Linux Commands Create Directory mkdir lab Change Directory cd lab View Current Path pwd List Current Directory Contents ls … Read more

Introduction to Format Input/Output in C Language

Introduction to Format Input/Output in C Language

The <span>formatted input and output in C language</span> is controlled through a format string that dictates how data is read or displayed. These format strings consist of ordinary characters and <span>conversion specifiers</span>, which begin with a percent sign (<span>%</span>). Basic Structure of Format Strings %[flags][width][.precision][length]type 1. Conversion Types (Type Specifiers) This is the core part … Read more

Serial Communication Protocol in C Language for Microcontrollers (Code Sharing)

Serial Communication Protocol in C Language for Microcontrollers (Code Sharing)

In real life, we always need to interact with others and share information. Microcontrollers also need to communicate with various devices. For example, the display instrument in a car needs to know the engine speed and the operating parameters of the motor, so the display instrument must obtain data from the car’s underlying controller. This … Read more

What Do You Need to Learn to Become an Embedded Driver Engineer?

What Do You Need to Learn to Become an Embedded Driver Engineer?

Many students who are new to embedded systems feel intimidated when they hear the term “driver engineer”: “Do I need to understand low-level assembly? Do I need to solder circuit boards? It seems 10 times harder than writing applications!” In fact, being a driver engineer is not as “unreachable” as it seems; it is essentially … Read more

Common C Language Knowledge in STM32 Development

Common C Language Knowledge in STM32 Development

The C language is essential foundational knowledge in microcontroller development. This article lists some common basic knowledge of C language in STM32 learning. 01 Bit Manipulation Bit manipulation is different from bit-banding operations. Bit manipulation refers to performing operations on each bit of a variable, while logical bit operations are performed on the variable as … Read more