Answered
How do I plot an arc or parabola
Hello Peter, To plot a parabola or arc in MATLAB, you can use the respective mathematical equations to generate data points and...

ongeveer een jaar ago | 0

Answered
using the int i as output name
Hello Sobel, For this purpose, you can use sprintf() function. This function will use an integer to generate the name of the fi...

ongeveer een jaar ago | 0

Answered
Limited Number of Cores in Parallel Processing
Hello Ahmad, MATLAB's ability to connect to a certain number of workers is primarily determined by the type of license you have...

ongeveer een jaar ago | 0

Answered
How can I speed up a nested for loop without parfor or spmd?
Hello Radhika, Apart from the things you have already tried, you can use methods like pre-allocation, vectorization and profili...

ongeveer een jaar ago | 0

Answered
How to Plot Lines Between Coordinate Pairs
Hello Ricky, Replacing "i" with a colon works in the latest version of MATLAB. I assume you are using an older version. Please ...

ongeveer een jaar ago | 0

Answered
How to call matlab functions from a C/C++ project..???
Hello Anuj, MATLAB Engine API for C++ provides an interface for C++ to launch MATLAB, use MATLAB functions and exchange data. P...

ongeveer een jaar ago | 0

Answered
5 samples and 4 features, how to do direct linear discriminant analysisusing MATLAB package algorithm
Hello Dayun, You can use "fitcdiscr" function in MATLAB to perform Linear Discriminant Analysis. Here is a sample code: % Samp...

ongeveer een jaar ago | 0

Answered
How can I use from all of my RAM and CPU cores when I run M file?
Hello @A.R.G, MATLAB traditionally executes code in a single thread, which means it uses only one core of the CPU by default. H...

ongeveer een jaar ago | 0

Answered
How to load data from a .txt file to matlab in the form of a matrix???
Hello Avinash, As per my understanding, the dlmread() or readmatrix() function will read the data from a file and store it in a...

ongeveer een jaar ago | 0

Answered
How to add space between heading of txt file?
Hello Khurram, To format the headers of your text file with spaces between them, you can use MATLAB's fprintf() function with s...

ongeveer een jaar ago | 0

Answered
how to make an identifer for string variables
Hello Linden, Assuming that the variables are doubles, here is a small example to achieve value assignment by grouping the vari...

ongeveer een jaar ago | 0

Answered
How to access much data from excel sheet to matlab?
Hello Manish, The error indicates that there are 59 rows and 8 columns in the excel file however, you are trying to access 60th...

ongeveer een jaar ago | 0

Answered
Sateflow: Indexing an array of size 1
Hello Maciej, The error you are getting is due to invalid indexing. MATLAB follows 1-based indexing i.e. the first index is 1. ...

ongeveer een jaar ago | 0

Answered
Matrix dimension must agree
Hi Maria, The error you are encountering is due to the incorrect use of element-wise multiplication (.*) instead of matrix mult...

ongeveer een jaar ago | 0

Answered
MATLAB crashes with no displayed error
Hello Kyle, The exit code -1073741819 (or 0xC0000005 in hexadecimal) typically indicates an access violation error, which means...

meer dan een jaar ago | 0

Answered
cell, find cell, matlab
Hi Tomas, From the example I figured out that you want to determine the index of a given value in a matrix. To solve this probl...

meer dan een jaar ago | 0

Answered
read txt file contains multiple arrays with different sizes
Hello Amal, To read a text file containing a 1D matrix and two 2D matrices separated by new lines and spaces, you can use MATLA...

meer dan een jaar ago | 0

Answered
Matlab exec file popup error window when it crashes
Hello Yuri, There are a few ways to handle the errors occuring during the execution of your project. Please try the below steps...

meer dan een jaar ago | 0

Answered
Does genetic algorithm take a long time to find a solution?
Hi Wendy, I understand that Genetic Algorithm is taking more time than expected in your case. Here are a few troubleshooting st...

meer dan een jaar ago | 0

Answered
Objective function required for genetic allgorithm
Hello Rizwan, I can help you write the objective function for optimizing a signal in MATLAB using Genetic Algorithm (GA). Here ...

meer dan een jaar ago | 0

Answered
Termination criterion for Genetic Algorithm when used in context of feature selection??
Hello Purti, I understand that you are getting different output in different runs of Genetic Algorithm. This is a common behavi...

meer dan een jaar ago | 0

Answered
How to add penalty function to constrained genetic algorithm
Hello Gopa Kumar, Penalty functions are a common method for handling constraints in Genetic Algorithm. The basic idea is to mod...

meer dan een jaar ago | 0

Answered
How chromosome in Genetic Algorithms Toolbox works in detailed
Hi Radek, I understand that you would like to know the details regarding the chromosomes of the Genetic Algorithm. The chromos...

meer dan een jaar ago | 0

Answered
Genetic Algorithm with a graph
Hi Margetik, As per my understanding, you want to plot a graph where the X-axis and Y-axis will show the number of generations ...

meer dan een jaar ago | 0

Answered
Is it possible to implement genetic algorithm for optimization without any mathematical relation or model?
Hi Sachin, I understand that your requirement is to use Genetic Algorithm Optimization when you do not have any mathematical mo...

meer dan een jaar ago | 0

Answered
genetic algorithm with integer constraint returns non-integer solution
Hello Seungbum, I can see that the results are not exactly integers but close to integers. The above mentioned behavior is an ...

meer dan een jaar ago | 0

Answered
Is it possible to use ga just to generate the population and use another piece of code to run it?
Hello Guido, As per my understanding you want to extract the population of each generation. You may follow the below link to kn...

meer dan een jaar ago | 0

Answered
Error in mat2str function
Hi Leandro, As per my understanding the error is caused since you are passing symbolic variables to the "mat2str" and the "num2...

meer dan een jaar ago | 0

Answered
When I tried to perform joint simulation with MATLAB and Prescan, MATLAB reported an error.
Hello KK, With the information available I understand that MATLAB is unable to find the the mentioned library file. If the file...

meer dan een jaar ago | 0

Answered
Neural Network In MATLAB
Hi Ghulam, I understand that you want to achieve low error in Neural Networks. You may consider the following ways. Normalize ...

meer dan een jaar ago | 0

Load more