**Statistics**

**MATLAB Answers**

**26** Questions

**0** Answers

RANK**11,239**

of 295,192

REPUTATION**4**

CONTRIBUTIONS

**26** Questions

**0** Answers

ANSWER ACCEPTANCE **
69.23%
**

VOTES RECEIVED**4**

RANK

of 20,185

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 153,340

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

Question

Need help with: Error using "mex"

I am trying to run a script which requires *mex*. Earlier It was generating the below error Error using mex No supported...

7 years ago | 1 answer | 1

### 1

answerQuestion

xlswrite command not working

I am trying to export matlab data to excel file but I am getting this error Error using xlswrite (line 219) Invoke Error...

7 years ago | 3 answers | 0

### 3

answersQuestion

Does "clear" command clears the global variables

Does clear command clears all the variables in the workspace including global variables. In my code, there are lots of global va...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to save vector columnwise in Excel file

Suppose I am generating a column vector randomly 30 times and each time I wish to save it in the Excel column. Can anybody tell ...

7 years ago | 2 answers | 0

### 2

answersQuestion

How to utilize power of GPU computing in Matlab

My research work is in the field of Evolutionary computation, Sometimes I need to run the algorithm on high dimensional data (di...

7 years ago | 2 answers | 0

### 2

answersQuestion

How to put plot inside a box

I am using a below code to generate a plot as shown by 'Plot 1' and exporting it in '.eps' format so that I can use it in latex ...

7 years ago | 2 answers | 0

### 2

answersQuestion

How to run matlab scripts on cloud and collect the results

I want to collect some results generated by Matlab scripts. On my machine, it will take days. Is it possible to run matlab scrip...

7 years ago | 0 answers | 2

### 0

answersQuestion

How to Design logic for grouping of variables

Suppose we have a variable called _'group'_ which contains grouping information group = [ {1}, {2}, ..., {D} ] We have ...

7 years ago | 0 answers | 0

### 0

answersQuestion

Updating columns of a matrix

Consider the below code where we have population 'pop' having 20 individuals with a dimension of 5 and a subpopulation 'subpop' ...

7 years ago | 0 answers | 0

### 0

answersQuestion

How to draw random number from a Cauchy Distribution

I know random number can be drawn from a *Normal Distribution* as follows normrnd(mu, sd) where mu=mean and sd=standard ...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to call .c file from matlab script

I have a Matlab script which calls .c file using *mex* command mex cSameGroup.c; On running the script, I'm getting the ...

7 years ago | 0 answers | 0

### 0

answersQuestion

How to use 'find' function in matlab

In the below code, We have a random population with structures Position (3D array) and Cost. I need to check whether a particula...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to use union operator

Consider the below code where I'm generating two random Population A and P. I need to make union of these two population. I trie...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to sort a Matrix

In below code we have a population 'P' of size 'NP' which has two fields 'Position' and 'Cost'. I need to sort the entire popula...

7 years ago | 1 answer | 0

### 1

answerQuestion

How to use global variable in nested function

I need to use global variable in nested functions. On running the below code, I'm getting an error *The GLOBAL or PERSISTE...

7 years ago | 1 answer | 0

### 1

answerQuestion

Error: Undefined function <func_name> for input arguments of type 'double'.

Below is a small part of the big code, Where I'm getting an error at line 3. *Undefined function 'f1' for input arguments of ty...

7 years ago | 2 answers | 0

### 2

answersQuestion

How to find global minimum of a schwefel function

I am trying to find the global minimum of a schwefel function which is 0 at [420.9687,..., 420.9687]. I have used 'fmincon', Par...

8 years ago | 2 answers | 1

### 2

answersQuestion

How to make standard semilogy plot more informative

Suppose, I'm plotting two datasets of two different algorithms using *semilogy* like this eps1 = 1:50; eps2 = 1:50; e...

8 years ago | 1 answer | 0

### 1

answerQuestion

How to solve this warning: Matrix is close to singular or badly scaled

I'm trying to implement a Evolutionary Strategy algorithm (an optimization algorithm). On increasing the size of the parameter ...

8 years ago | 1 answer | 0

### 1

answerQuestion

How to plot rastrigin function in matlab

I'm trying to plot rastrigin function this way clear; clc; close all; limits = repmat([-5 5], 2, 1); [X,Y] = meshgrid...

8 years ago | 2 answers | 0

### 2

answersQuestion

How to use surf to plot sphere function in matlab

I'm trying to plot sphere function below, But I'm getting wrong result <</matlabcentral/answers/uploaded_files/58858/Capture....

8 years ago | 1 answer | 0

### 1

answerQuestion

Code for Plotting Sphere function

Can anybody share the complete code for plotting sphere function <</matlabcentral/answers/uploaded_files/58783/Capture.PNG>> ...

8 years ago | 1 answer | 0

### 1

answerQuestion

How to apply pca() [Matlab] on high dimensional data

I want to apply `pca()` function in `matlab` on data with `500 dimensions`. But pca() has a limit of only 99 dimensions. Do I ha...

8 years ago | 3 answers | 0

### 3

answersQuestion

How pca() function works in matlab

I'm trying to apply pca() function on 3d data, But I'm getting empty COEFF matrix x1 = randn(400,1); y1 = randn(400,1); ...

8 years ago | 1 answer | 0

### 1

answerQuestion

Need high dimension (30-50) dataset for applying PCA

I'm learning PCA. In order to get a clear intuition, I need a high dimensional data set of around 30-50 dimensions. Can anybody ...

8 years ago | 1 answer | 0

### 1

answerQuestion

How to use function 'ind2gray'

I'm trying to convert *uint8* image to *grayscale* image using the following command a = imread('image.png'); % a dimension...

8 years ago | 1 answer | 0