photo

Chuguang Pan


Last seen: Today Active since 2019

Followers: 0   Following: 6

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

24 Questions
52 Answers

Cody

0 Problems
268 Solutions

RANK
634
of 300,706

REPUTATION
123

CONTRIBUTIONS
24 Questions
52 Answers

ANSWER ACCEPTANCE
70.83%

VOTES RECEIVED
21

RANK
 of 21,045

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
554
of 170,244

CONTRIBUTIONS
0 Problems
268 Solutions

SCORE
3,484

NUMBER OF BADGES
14

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

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

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...

9 days ago | 0 answers | 0

0

answers

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...

12 days 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...

14 days 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 ...

15 days 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,...

15 days 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 ...

16 days 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...

19 days 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...

20 days 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...

25 days 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...

28 days 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...

1 month 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...

1 month 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))

1 month 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...

2 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...

2 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...

2 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...

3 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...

3 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...

3 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...

3 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]...

3 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...

4 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...

4 months ago | 1 answer | 0

1

answer

Answered
Unexpected results using SVD to separate components that make up a function
As far as I konw, the SVD of a matrix P is equal to the summation of rank-1 components. Since the matrix is not rank-1, I th...

4 months ago | 1

Answered
How does the type of solver (fixed vs variable step) affect reinforcement learning in Simulink environment?
You can use Simulink Debug Functionality to step through the simulation and examine the output of agent.

4 months ago | 0

Answered
How to patch the area under curve for a polarplot?
There is a similar question in https://ww2.mathworks.cn/matlabcentral/answers/451422-how-to-use-patch-fill-on-a-polarplot, this ...

4 months ago | 0

Answered
Is my CNN Correct
You can use analyzeNetwork fucntion to obtain more details of your neural network layers = [ sequenceInputLayer(1)...

5 months ago | 0

Answered
Vectorizing DAE with strong State Dependance Mass matrix
The Vectorized option in odeset means that your DAEs can be writen as , apparently your DAEs can not be expressed as separable f...

5 months ago | 0

| accepted

Answered
Create an extra row in a table that show the means of all columns (but without any extra headings)
params = ["ROI_L";"ROI_C";"ROI_R"]; FWHMX = [3.09;3.14;3.36]; FWHMY = [3.00;2.92;2.88]; FWHM2D = [3.05;3.03;3.12]; CenInt ...

5 months ago | 0

| accepted

Answered
How to write a timetable to excel with rowtimes as dates without times?
You can use "InputFormat" option to specify the date format m = (1:3).'; dates = datetime(2025,m,15,"InputFormat","dd-MM-yyyy"...

5 months ago | 0

Load more