photo

Ayush Aniket


Last seen: 2 days ago Active since 2017

Followers: 1   Following: 0

Programming Languages:
MATLAB

Statistics

All
  • 6 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Solver

View badges

Feeds

View by

Answered
How to plot a function using gradient descent method?
To plot function and iterative value of the variables in MATLAB using gradient descent, you need to: Define the function. Com...

1 day ago | 0

Answered
How will an Optimization Algorithm search inside an already trained neural network??
You can write a custom objective function and use it in the fmincon MATLAB function to link a trained ANN with an optimization a...

2 days ago | 0

Answered
Correct anova1 application
In the context of your simulations and the use of one-way ANOVA in MATLAB, the concept of "groups" is crucial for setting up you...

3 days ago | 0

Answered
How to quantify variance explained from PCA?
To quantify the variance explained by PCA and apply the principal components derived from your training data to your test data, ...

3 days ago | 0

Answered
Adjust classifier performance (sensitivity & specificity)
To balance the sensitivity and specificity of your classifier, especially in the context of imbalanced binary data, you can try ...

4 days ago | 0

Answered
Apply 'rotatefactors' on the observations to represent them in the new factorial design (PCA)
Yes, your approach to compute the new scores after applying a rotation to the principal components is correct. When you apply ro...

4 days ago | 0

Answered
How to specify same length scale for different predictors in fitrgp?
To fix the same length scale for certain predictors in a Gaussian Process Regression (GPR) model using MATLAB's fitrgp, you can ...

5 days ago | 0

Answered
Is there an alternative for biplot to plot Principle Component Analysis (PCA) scores (like frequency/density score plot)?
When dealing with large datasets, plotting all the data points can indeed exhaust your system's memory. Here are a few strategie...

5 days ago | 0

Answered
How to decide value of 'ndim' when using ,[residuals,reconstructed] = pcares(X,ndim) , for Feature size reduction using PCA?
In MATLAB, you can experiment with different values of ndim (the number of retained components) to see which works best for your...

6 days ago | 0

Answered
How do I test the significance of a population correlation coefficient?
There is no direct fundtion in MATLAB for testing the significance of the population correlation coefficient. To assess the si...

6 days ago | 0

Answered
Translating values to gradient color scale
To translate the values of "Component 1" from your PCA results into a color gradient map and use it for color-coding another plo...

30 days ago | 0

Answered
How to access each classifier's predicted class and accuracy from the 'fitcensemble' function generated model?
In ensemble methods like bagging, MATLAB combines votes using majority voting (averaging) for classification. Each classifier in...

30 days ago | 0

Answered
Error Invalid Training Data- Predictors must be a N-by-1 cell array of sequences?
Based on the error message, the error occurs due to discrepancy between the expectda data format and the format of your data. T...

1 month ago | 0

Answered
How to do a cyber attack and validate if the mitigation is correct?
To simulate a cyber attack on a digital twin system and evaluate your mitigation strategies, you can use Simulink to create a mo...

1 month ago | 0

Answered
Output equation of fitnet
The reason behind the discrepancy between the output of the trained neural network and the analytical equation you are using is ...

1 month ago | 0

Answered
Integral of Transfer function in Laplace domain
To compute the integral of the squared magnitude of a transfer function over the frequency domain, you can use Parseval's theore...

1 month ago | 0

Answered
LSIM initial condition code
Staring from MATLAB R2024b, one of the ways you can specify the initial conditions for simulating a state-space model in the lsi...

1 month ago | 0

Answered
Being able to export ANN without retraining
To use a pre-trained Artificial Neural Network (ANN) for testing on new data without retraining, you need to save the trained ne...

1 month ago | 0

| accepted

Answered
Mvregress and choice of the estimation algorithm
The choice of algorithm in multivariate regression can indeed influence the results, particularly the estimation of standard err...

1 month ago | 0

| accepted

Answered
How to caculate numWeightElements in network?
The discrepancy in the calculation of the number of weight elements net.numWeightElements arises from the structure of the neura...

1 month ago | 1

| accepted

Answered
Effect of GA population size and Number of generation with many variables
Increasing the population size or number of generations leads to increase in execution time as well. Taking the population size ...

1 month ago | 0

Answered
identifying the corresponding node number to each element for meshed geometry.
To create a connectivity matrix for a triangular mesh in MATLAB, where each row represents an element and the columns represent ...

1 month ago | 0

Answered
Require code for local sensitivity analysis of ode-based model
Introduced in MATLAB R2024a, the odeSensitivity MATLAB function can be used to perform sensitivity analysis on the parameters of...

1 month ago | 0

Answered
Changing predefined values in simulink examples
The pre-defined values can be changed in the existing examples in Simulink. In Simulink, the storage location of variables depe...

1 month ago | 0

Answered
How to fastly generate a series of complex Gaussian vectors under given covariance matrix Q ?
One of the ways you can generate the H matrix is by using the Cholesky decomposition to transform standard normal random vectors...

1 month ago | 0

Answered
Simulate the probability of winning the game commonly known as the Piso Game in a Peryahan (see image below) here in the Philippines.
Hi Norberto, You can write a MATLAB script to simulate the Piso game by following the steps below: Define Parameters: Start by...

1 month ago | 0

Answered
"block diagram error" while compiling a simulink model
Hi Kai, Error during model compilation can occur due to various issues such as model configuration, build folder and path probl...

1 month ago | 0

Answered
Issues filling rounded numbers into MS Word
The issue is due to the way MATLAB handles numeric formatting when appending values to a Word document using the Report Generato...

1 month ago | 0

Answered
Parallel Gradient Based Optimizer, Objective Function Uses Simulink
Hi Sadi, I understand that your objective is to use gradient based optimization function like fmincon with parallel computing o...

2 months ago | 0

Answered
Why does the SAC trainning stop at the first episode? What can trigger it?
Hi Renaldo, The reason for the agent training stopping after first episode could be due to the "Training termination" condition...

2 months ago | 0

Load more