Community Profile

photo

Chuguang Pan


Last seen: Today Attivo dal 2019

Followers: 0   Following: 0

Contatto

Mechanical Engineer

Programming Languages:
C
Spoken Languages:
English
Pronouns:
He/him

Statistiche

All
  • First Review
  • Thankful Level 2
  • Project Euler I
  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

Visualizza badge

Feeds

Visto da

Domanda


How to configure ip address/port with DDS Blockset
I have build the DDS application shapesdemo.exe with DDS Blockset. I have test the communication between shapesdemo.exe with Op...

1 giorno fa | 0 risposte | 0

0

risposte

Domanda


FastDDS ShapesDemo Can not Communicate with DDS Blockset ShapesDemo
I followed the steps illustrated in DDS Blockset ShapeExample.mlx file and have build the shapesdemo.exe successfully. I first s...

13 giorni fa | 0 risposte | 0

0

risposte

Risposto
Parse error at x
The error message shows that there is a unrecognized varialble x_initial. You should initialize it. x_initial=[.5;.5;.5];

22 giorni fa | 0

Risposto
Trouble with handling values in anti-diagonal of a square matrix
diagVal=8; otherVal=1; nrows=8; if mod(nrows,2) % odd A=(diagVal-otherVal)*eye(nrows) + (diagVal-otherVal)*fliplr(eye(...

circa 2 mesi fa | 1

Risposto
Hello, I have a cell array with the list of files I would like to delete. However I would not like to use a for loop to loop through each file to delete it.
maybe you can use cellfun. Files={'1.txt','2.txt','3.txt'}; cellfun(@delete,Files)

circa 2 mesi fa | 0

Risposto
Solving matrix equation in Matlab,
Using vectorization operator vec, which transfer a matrix to a column vector through stacking matrix's columns vertically. There...

circa 2 mesi fa | 0

| accettato

Risposto
Making loop for a function 'xlsread'
xlsread is not recommended, you can use readtable/readmatrix/readcell depend on what type of data you want to read. The followi...

circa 2 mesi fa | 1

Domanda


Where is the Location of CMakeLists File When I Build Simulink Model With CMake?
I want to build the shapesdemo Model which is incorporated in DDS Blockset Examples. I follow the steps illustrated in accompani...

circa 2 mesi fa | 2 risposte | 0

2

risposte

Domanda


CMake Error When Building DDS Blockset shapesdemo Example Model
I want to build the shapesdemo Simulink Model which is incorporated in DDS Blockset Examples. I follow the steps illustrated in ...

circa 2 mesi fa | 0 risposte | 0

0

risposte

Domanda


How to implement Ethernet Communication in Simulink Desktop Real-Time
I want to use Ethernet Communication within Simulink Desktop Real-Time. But I do not find corresponding I/O block in Simulin...

5 mesi fa | 2 risposte | 0

2

risposte

Risposto
How to take the mean of each four adjacent position in a matrix?
A=randi(10,1536,2048); % test Matrix M=zeros(768,1024); % result Matrix for row=1:768 for col=1:1024 M(row,col...

quasi 2 anni fa | 1

| accettato

Domanda


Can not create MATLAB string without MATLAB runtime being initialized.
I create a .NET assembly using a function written in MATLAB. When I want to create a MATLAB String using MWStringArray Class, it...

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


expression error in Documentation
I think the expression in the image shown below should be , whose derivative is equal to ! Documentation Link

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


importrobot but can not show visual geometries.
I try to import a robot model by using importrobot function with the input is a Simscape Multibody model. However, when I s...

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


MATLAB function cross can be applied to symbolic object but Documentation does not explain?
syms x y z vec1=[x y z]; vec2=[x y z]; cross(vec1,vec2)

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


How to build dynamic model in SimMechanics ?
I want to know what method is used by SimMechanics to build dynamic model. Maybe Newton-Euler Method or Lagrangian Form...

quasi 4 anni fa | 1 risposta | 0

1

risposta

Risposto
How do i find a maximum elements in a specific row ?
A=[1,2,3;4,5,6;7,8,9]; M=max(A(2,:))

circa 4 anni fa | 1

| accettato

Risposto
rand command give different answer
All the random number functions, rand, randn, randi, and randperm, draw values from a shared random number generator. Every time...

circa 4 anni fa | 0

Risposto
How we can generate generate a noise signal from gauss distribution ??
This is a example for generating a bivariate normal distribusion which is a duplicate of MATLAB Documentation. Maybe it can help...

circa 4 anni fa | 0

Risposto
how to fix this error matrix dimension must agree
The p1 matrix is 1x100. nerst(:) will turn a matrix nerst which is 1x100 to 100x1. A matrix with size of 1x100 can't | with ...

oltre 4 anni fa | 0

Risposto
hello everyone, i am a noob using matlab. please help me i have an equation and 2 unknown variable
The equation μ=(μmax*Cs)/(Ks+Cs ) can be converted to μmax*Cs-Ks*μ=μ*Cs. μ=[0.011;0.059;0.053;0.149;0.125]; Cs=[430;428;...

oltre 4 anni fa | 0

Risposto
How can I iterate all three cases at once in one script?
Maybe you can use a for loop. You can store functions g1(x), g2(x), g3(x) as a cell array. Such as g1=@(x) sqrt(2*x+3); g2=@(x...

oltre 4 anni fa | 2

| accettato

Risposto
How to integrate this function numerically?
You can use Euler formula. V(n+1)=V(n)+h*f(R,V(n)), which f(R,V) is the right side of differential equation. But you need to kn...

oltre 4 anni fa | 1

| accettato

Risposto
How can I use a for loop to select values from a table that meet two conditions?
m=1; for i=1:height(tab) if(Aerobic(i)~=Anaerobic(i)) && Aerobic(i)>=0 && Anaerobic(i)>=0 secmet(m, 1:3)=tab(i, ...

oltre 4 anni fa | 1

| accettato

Risposto
How can I do this Matrix data operation?
It is Unworkable! For eaxample, every row of new matrix need that there must exist current and angle pairs which generate same ...

oltre 4 anni fa | 0

Risposto
How to collect a fraction in a certain equation?
Hi Fahmy. I try the matlab function factor, but it get the result as following. syms a b c d e f=(a/3)+(b/3)+(c/3)+(d/3)+(e/3...

oltre 4 anni fa | 1

| accettato

Risposto
Adding a column every nth column without replacing existing one
It is every 2th column. Now I put it in Answer this question rowA=size(A,1); colA=size(A,2); B=zeros(rowA,colA*2); B(:,1:2:2...

oltre 4 anni fa | 1

Risposto
regexp help when comparing strings
The function regexpi needs the second argument expression must be a regular expression! About what is regular expression, you c...

oltre 4 anni fa | 0

Risposto
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 7.252760e-17.
It seems that A-lamda*eye(n) is nearly singular, you should check it carefully! mabey you can use another computing method.

oltre 4 anni fa | 0