photo

Chuguang Pan


Last seen: Today Active since 2019

Followers: 0   Following: 5

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

19 Questions
45 Answers

Cody

0 Problems
257 Solutions

RANK
766
of 300.392

REPUTATION
101

CONTRIBUTIONS
19 Questions
45 Answers

ANSWER ACCEPTANCE
73.68%

VOTES RECEIVED
18

RANK
 of 20.934

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
553
of 168.373

CONTRIBUTIONS
0 Problems
257 Solutions

SCORE
3.374

NUMBER OF BADGES
14

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Knowledgeable Level 3
  • 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
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 dagen 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...

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

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

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

ongeveer een maand 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...

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

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

ongeveer 2 maanden 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]...

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

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

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

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

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

3 maanden ago | 0

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

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

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

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

4 maanden ago | 0

Answered
trainnet not openning the plot's window and get stuck.
You can check if you have setted trainingOptions with Plots=none. If the training options are correctly setted, maybe the issue ...

4 maanden ago | 1

| accepted

Answered
How to have a vector that is obtained by discretizing a and b for each i.
you can use arrayfun function to process array element. a=[1 2 3 4 5 6 7 8 9 10 11 12]; b=[24 23 22 21 20 19 18 17 16 15 14 ...

4 maanden ago | 0

| accepted

Question


How to understand learnable parameters of cwtlayer and the underlying autograd calculation
I was learning continuous wavelet transform (cwt) and found that there was a cwtlayer in Deep Learning Toolbox. The document...

5 maanden ago | 1 answer | 0

1

answer

Question


Why the length of power spectrum is fixed at 4096 when the signal's length varies ?
I was using pspectrum function to obtain the power spectrum of time series signals. However, I find that when I set different le...

5 maanden ago | 1 answer | 0

1

answer

Question


How to Solve Linear Complementarity Problem (LCP) with MATLAB ?
I want to use MATLAB for solving Linear Complementarity Problem (LCP) as defined in the following: what optimization function...

5 maanden ago | 1 answer | 1

1

answer

Answered
How can I simulate two-rigid body-interactions when the complete motion of one body is known using Simscape Multibody?
@yang. You can add prescribed motion trajectory to the 6DoF Joint's actuation input port as illustrated in the following image. ...

5 maanden ago | 0

Answered
how to change the size of the fonts inside the bar graph
use text function with FontSize option to change font size x = [1 2 3]; vals = [2 3 6; 11 23 26]; b = bar(x,vals); xtips1 ...

6 maanden ago | 0

| accepted

Answered
Iteratively remove the rows and columns of a matrix
M = 3; N = 8; [H00,H10,H20,H30,H40,H50,H60,H70] = deal(randi(10,M)); [H11,H21,H31,H41,H51,H61,H71] = deal(randi(20,M)); H ...

7 maanden ago | 0

Answered
Matrix Near Singularity Warning During the ODEs Solving Procedure
Through stepwise debugging, I find that the badly scaling issue was induced by the stiffness value K, which is a large value...

7 maanden ago | 0

| accepted

Question


Matrix Near Singularity Warning During the ODEs Solving Procedure
I am working with multi rigid body systems simulation utilizing Runge-Kutta (RK) numerical integration method. In the every ...

7 maanden ago | 1 answer | 0

1

answer

Answered
How to plot a string signal/array?
In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the ...

10 maanden ago | 1

| accepted

Answered
The Parameter of ODE is not Updated When the EventCallback Function is Called
I have solved this isssue with the following odeEvent object definition: E = odeEvent("EventFcn",@impactEvent,"Direction","asce...

10 maanden ago | 1

Load more