photo

Chuguang Pan


Last seen: Today Active since 2019

Followers: 1   Following: 7

Message

I am interested in MATLAB/Simulink and use it to solve many practical problems.

Programming Languages:
Python, C, MATLAB
Spoken Languages:
English, Chinese
Pronouns:
He/him
Professional Interests:
Control Algorithm Design, Signal and Data Processing, Mechanical Engineering

Statistics

All
MATLAB Answers

26 Questions
57 Answers

Cody

0 Problems
272 Solutions

RANK
624
of 300,886

REPUTATION
126

CONTRIBUTIONS
26 Questions
57 Answers

ANSWER ACCEPTANCE
73.08%

VOTES RECEIVED
23

RANK
 of 21,104

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
551
of 171,502

CONTRIBUTIONS
0 Problems
272 Solutions

SCORE
3,528

NUMBER OF BADGES
14

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Knowledgeable Level 4
  • Speed Demon
  • Promoter
  • Thankful Level 3
  • First Review
  • Project Euler I
  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver
  • 3 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
I am unable to find aerodynamic propeller block on my simscape multibody, I am working on drone simulation and using matlab 2025a; do not know if it is link to a specific add
@Imami Joel. The Aerodynamic Propeller block is in Simscape/Driveline/Engines&Motors libraris.

1 day ago | 0

Answered
How to construct Kolmogorov-Arnold Network based on MATLAB's Deep Learning Toolbox
After referring to the open-source Github repository pykan, I have successfully implemented a custom KAN layer based on MATLAB's...

7 days ago | 0

| accepted

Question


How to construct Kolmogorov-Arnold Network based on MATLAB's Deep Learning Toolbox
Kolmogorov-Arnold Networks (KANs) are theoretically grounded alternatives to conventional Multilayer Perceptrons (MLPs). KANs ar...

8 days ago | 1 answer | 1

1

answer

Answered
I’m having trouble calculating the digit probability of π in a basic MATLAB Cody problem. Any help would be appreciated.
@BINITO. I have tried to use AI for solving the issue, the answer provided by AI is: % ------------------------------ Version f...

9 days ago | 0

Answered
how to plot these 2 column data into a curve on oxy plane
load matlab_data.mat plot(T.x,T.y,'o--'); title(string(ans))

13 days ago | 1

Answered
Verification failed to check the validity of the customize layer with Incorrect type of 'Z' for 'predict'
After debugging for a long time, I find that the issue is caused by the default initialization of single precision in dlnetwork'...

1 month ago | 0

| accepted

Question


Verification failed to check the validity of the customize layer with Incorrect type of 'Z' for 'predict'
I want to create a customized deep learning layer with nested dlnetwork according to the example presented in Example. After cre...

1 month ago | 1 answer | 0

1

answer

Question


What is the best practice to train a NeuralODE model with very small learnable parameter ?
I want to train a NeuralODE model which approximates a complicated physical system with complex governing ODEs. The physical sys...

2 months ago | 1 answer | 0

1

answer

Question


How to realize Maximum Mean Discrepancy (MMD) based on pdist2 function ?
The MaximumMean Discrepancy (MMD) is a statistical testing method and one of the most widely used distance metrics in transfer l...

2 months ago | 0 answers | 0

0

answers

Question


How to read a text file with irregular timestamp data using detectImportOptions function ?
I want to read the condition monitoring datas stored in the text file. The data text file has 7 colums, where the first colum re...

2 months ago | 1 answer | 0

1

answer

Answered
simulink仿真结果数据采集
@张海云. You can use Simulink.SimulationInput objects to configure 1000 models with different setting. Then, you can use parsim to ...

2 months ago | 0

| accepted

Answered
How to implement interpolation using Prelookup using a MATLAB function?
@Amr. interpn can be used for N-D interpolation (table lookup). Data = rand(1201,26,37,384); [X1,X2,X3] = ndgrid(linspace(0,2,...

2 months ago | 0

Answered
Size of predictions and targets must match.
@Bahadir. As indicated by the error message, the size of prediction and the target must be equal. I think you should reduce the ...

2 months ago | 1

| accepted

Answered
Movmedian with non-uniform sample points
@Robert Watson.The SamplePoints argument of movmedian function represents the location of data, it must has the same length with...

2 months ago | 0

Question


How to integrate a control system by ode45 with PID control input ?
I want to simulate a control system using ode45 function. The system model can be expressed as , where the control input is the...

2 months ago | 2 answers | 0

2

answers

Answered
Imaginary output from arccosine function when the input is close to -1
@Ali. After loading the m and n vectors from your attached NormalVectors.mat file. I find that the calculation result of theta i...

2 months ago | 1

| accepted

Answered
what is power spectrum value mean ('pspectrum')
@지호. The documentation of pspectrum illustrates that the calculation processes to construct the spectrogram of a nonstationary s...

2 months ago | 0

Answered
How to change folder for "slprj" folder generation?
@Sergei. For setting up the path of "slprj" folder, you have to configure the SimulinkCacheFolder of project. For instance, my...

2 months ago | 1

| accepted

Question


What is the best practice to understand the source code of MATLAB's built function ?
I want to learn the basic theory of wavelet synchrosqueezed transform, and find that there is a built-in function wsst in the Wa...

2 months ago | 1 answer | 0

1

answer

Answered
help me to fix this finveser code
syms t; v01 = 30; v02 = 25; h1 = 25; h2 = 30; g = 9.78; x1(t) = v01*t; y1(t) = h1 - (1/2)*g*t^2; y1(finverse(x1,t))

3 months ago | 0

Answered
PMSM DRIVE EXAMPLE: where are the model's variables located?
@Stefano. The variables appearing in the base workspace is calculated from the PreloadFcn callback function in the PMSM model. Y...

3 months ago | 0

Answered
Squeeze-and-Excitation-Inception Architecture for 1D-CNN in MATLAB: Input Data Format Specification and Dimension Matching Issues Between Modules
@dachen wang. For the first issue, the documentation of convolution1dLayer states that the desired input format of convolution1d...

3 months ago | 0

| accepted

Answered
How to open 2023 models in 2025 version
@Tope Roseline. As indicated by the prompt message, the old model established in R2023 has obsolete simscape blocks which are no...

3 months ago | 0

Answered
Unable to use structName.?ClassName for VideoWriter class
I think the options.?ClassName syntax is not supported within arguments block. You should specify each name-value pair individua...

4 months ago | 0

Answered
how can I simplify this code?
function [idx,pairs,scan] = Two_Ended_Search_2(x,target) idx = find(x==target); n = length(x); LR = min(idx-1,n-i...

4 months ago | 0

| accepted

Answered
Issues creating error bar for bar figure
The problem lies in the variable Names is string array, which is not supported by errorbar function. You can use categorical fun...

4 months ago | 0

Answered
Representing an orifice whose length is greater than the orifice diamter using Simscape Fluids (IL)
I think you can realize such a nozzle using both Pipe (IL) block and Orifice (IL) block. For example, you can connect orifice bl...

4 months ago | 1

| accepted

Answered
SVD to a matrix subset (rows)
I find there is a svdappend function for calculating SVD of matrix incrementally, such as from SVD of A to SVD of [A,D] or [A;D]...

4 months ago | 0

Answered
Why does this error occur? Error using cwt>parseinputs (line 510) Invalid number of scalar input arguments. Error in cwt (line 297) fbcell = parseinputs(Norig,TTable,varar
You do not need to pass scales argument explicitly. The scales argument is excluded of cwt function's signature. The minimum and...

5 months ago | 0

Question


How to simulate electro-hydraulic actuator system with hydraulic oil thermal effect in Simscape
I want to simulate hydraulic actuator with hydraulic oil thermal effect use Simscape. I find there is an example model Close...

5 months ago | 1 answer | 0

1

answer

Load more