Answered
Writing non complete rows and columns to an hdf5 file
Hello, To reshape foo into a 2D array that matches the dimensions you want to write into the dataset /baz in the bar.h5 file, y...

3 months ago | 0

Answered
Unique function to return last duplicate value
Hello, You can achieve this by using the unique function in MATLAB with a little twist. The unique function by default returns ...

3 months ago | 0

Answered
How to get shapley value for Neural Network trained on matlab? it keeps error...
Hello, In game theory, the Shapley value of a player is the average marginal contribution of the player in a cooperative game. ...

3 months ago | 0

Answered
how to run feature selection in a 3D matrix
Hello Hugo, To perform feature selection using the fscmrmr() function on a 3D matrix in MATLAB, you need to ensure that the dim...

3 months ago | 0

Answered
What is this line of code doing?
Hello Quazi, blob(blob == blob(i,j-1)) = blob(i-1,j); This line is replacing all occurrences of the value blob(i, j-1) in the ...

3 months ago | 0

Answered
I have matlab code, when i run the program i could 't get the values and also graph.Can u help me in this regards?
Hello Sunitha, After executing the program, the error message indicates that the function dydx and BC are not returning the col...

3 months ago | 0

Answered
MEAN OF A VARIABLE WITH RESPECT TO OTHER VARIABLES
Hello Saptorshee, To calculate the mean of the variable a25 grouped by the variables a6a7 and year in MATLAB, you can use the g...

3 months ago | 1

Answered
repeat loop in a table
Hello Matt, To replace values in multiple columns of a table in MATLAB, you can loop through each column and apply the same lo...

3 months ago | 0

Answered
running parallel loop until a variable or event
Hello Juan, The error you're encountering is since parfor does not allow modification of the loop index within the loop body. ...

3 months ago | 0

Answered
Modified 2nd order newton rapson method
Hello Gaurav, To solve the given equation using a modified 2nd order Newton-Raphson method in MATLAB, you can refer to the foll...

3 months ago | 0

Answered
How to get satellite track for multi constellations?
Hello Joe, To generate a single ‘skyplot’ that includes satellite tracks for all GNSS constellations, you need to ensure that y...

3 months ago | 0

Answered
Error in gui_mainfcn
Hello Diana, ‘nanmean’ is a part of the "Statistics and Machine Learning Toolbox", which I believe you do not have, and which ...

3 months ago | 2

Answered
How do I save each response in an excel file every time I click the submit button?
Hello Ysabella, I understand you are trying to add the matrix data every time the submit button is pushed to a new sheet named...

3 months ago | 0

Answered
how to solve this differential equations with dsolve
Hello, To solve differential equations using ‘dsolve’ in MATLAB, you need to set up the equations and initial conditions prope...

3 months ago | 0

Answered
how can i get the nonzero value of Tdim{i}(1),while i have to start value of k=2:12?
Hello Deepesh, I understand you are trying to ensure that ‘Tdim{i}(1)’ is nonzero, which can be achieved when its value is der...

3 months ago | 0

Answered
Differentiating a user input equation
Hello Kushagra, To differentiate an equation given in string form, you can convert it to a symbolic expression in MATLAB. This...

3 months ago | 0

Answered
May I ask how to use MATLAB code to build an ECA module?
Hello Shen, I understand you are trying to implement an ECA module using MATLAB. I can help you translate the provided Python ...

3 months ago | 1

| accepted

Answered
How to regrid 2 surface data to match each other
Hi Sarvesh, I understand you want to process a set of wind data, which includes latitude, longitude, and wind speeds in both th...

3 months ago | 0

| accepted

Answered
Is it possible to realize self-supervised RL by adding auxiliary loss to the loss of Critic of PPO agent?
Hi Gavid, Yes, it is possible to implement self-supervised (SS) RL with a PPO agent in MATLAB and add an auxiliary loss to the ...

3 months ago | 0

Answered
错误使用 rlDeterministicActorRepresentation。Observation names must match the names of the deep neural network's input layers.
Hello, The error you're encountering is due to a mismatch between the observation names used in your environment's observation ...

3 months ago | 0

Answered
strfind returns empty cell despite that the strings contain same characters
Hi, It looks like the issue you're encountering is due to the parameters being passed to the ‘strfind’ function in the wrong o...

5 months ago | 0

Answered
Sorting correlation matrix- with row and column information - need help..
Hello Soni, I understand you are trying to sort a correlation matrix along with its row and column names. Below is a solution ...

5 months ago | 0

Answered
Output of system function in Linux
Hi Torsten, To clean up the output by removing these escape sequences, you can use the following git options before running com...

5 months ago | 0

Answered
How to change author for git commits?
Hi, Yes, there is a way to change the author for commits in Git, including when working within a MATLAB/Simulink Project. The a...

5 months ago | 0

Answered
I need help on how to plot Surface Plasmon Polaritons (SPPs) for Multilayer Systems
Hello Ambali, To address the issues, you're encountering with plotting Surface Plasmon Polaritons (SPPs) for a multilayer syst...

5 months ago | 0

Answered
How to remove _ME folders saved in Users\user\AppData\Local\Temp folder
Hello, The '_ME' folders in the 'Users\user\AppData\Local\Temp' directory are typically generated by MATLAB compiled applicatio...

6 months ago | 0

Answered
How to do a stepwise multivariate regression analysis with random variables
Hello, To conduct a stepwise multivariate regression analysis with random variables as you have described, the process involves...

6 months ago | 0

Answered
High fluctuation in Q0 value for TD3 agent while training.
Hello James, To understand why there are high fluctuations while using different RL agents, firstly we need to understand how ...

6 months ago | 0

Answered
hnumerically analyze the KdV equation using finite difference method
Hello, To analyse a partial differential KdV equation, I suggest trying an explicit time-stepping method, such as the fourth or...

6 months ago | 0

| accepted

Answered
My DDPG agent model is generating same output from every simulation.
Hello, To generate different gaits from each simulation with your trained Deep Deterministic Policy Gradient (DDPG) agent, you ...

6 months ago | 1

| accepted

Load more