Community Profile # Johan Johan

24 total contributions since 2018

• View details...

Contributions in
View by

Question

Undefined function or variable with correct execution in matlab
Why do i get this error? despite all variables are defined , after execution the code it is working correctly, but if i want...

1 month ago | 0 answers | 0

### 0

Question

Binary floating point Representation in Matlab
Floating-point numbers are represented as X=(-1)^s*m*2^c. s: the sign m:matissa c:exponent For example The value 1.984...

2 months ago | 2 answers | 1

### 2

Question

Solve systems of linear equations Ax = B for x
x = A\B solves the system of linear equations A*x = B. The matrices A and B must have the same number of rows. But ,what is the...

3 months ago | 3 answers | 0

### 3

Question

Index Vector Operation in Matlab
If the matrix A and the vector b A = 5×5 13 2 3 3 10 14 5 15 7 1 2 9 15...

3 months ago | 1 answer | 0

### 1

Question

The real-valued amplitude response
Where amplitude response A(w) is continuous and real-valued. How i can write a Matlab function that uses the FFT to compute A(...

3 months ago | 1 answer | 0

### 1

Question

How can I change a FOTRAN code into a MATLAB code
To convert, followings are some steps i applied : 1. Download and extract f2matlab into your computer 2. In matlab, go to the ...

3 months ago | 1 answer | 0

### 1

Question

Convergence in genetic algorithm method
Hi I used the genetic algorithm, in general idea about this method ,the convergence and the number of iteration is related b...

4 months ago | 1 answer | 0

### 1

Question

Multiplying a Vector by a Matrix in matlab
I found this problem in matlab when i want to multiplying a vector by matrix. : n=0:4; r=exp(-j)*n; o=[1 2 0; 3 2 0;5 6 1] ...

9 months ago | 0 answers | 0

### 0

Question

Crossover applications in matlab
I want to apply crossover betweem x1 and x2 x1=[ -1.0000 - 1.0000i 2.0000 - 2.0000i 3.0000 - 3.0000i]; x2=[ -4.0000 - 4.0...

11 months ago | 1 answer | 0

### 1

Question

How to create initial population of 100 random set of coefficient for design filter using genetic algorithm?
The vector contain a 51 coefficients ,and i want to random a vector 100 times (initialization in GA),what is the method ?does it...

1 year ago | 1 answer | 0

### 1

Question

Genetic Algorithm : Lower and Upper Bounds
How to choose the VarMin (Lower Bound of decision Variables) and VarMax (Upper Bound of Variables) of any problem when using th...

1 year ago | 2 answers | 0

### 2

Question

Efficient integral in optimization methods
What is the difference between *trapz* and *integral* function if use them in objection function for optimization with any e...

1 year ago | 0 answers | 0

### 0

Question

the operations in genetic operators
when applicat the genetic algorithm in matlab there is two type of crossover the first type is y1=alpha.*x1+(1-alpha)....

1 year ago | 0 answers | 0

### 0

Question

The point between popc(k,1) and cost -- what does it mean? popc(k,1).Cost=CostFunction(popc(k,1).Position);

1 year ago | 1 answer | 0

### 1

Question

Objective function with array as decision variable
if x is a vector of values, n=10; x = [0.0001 0.0003 0.0007 0.0020 0.0055 0.0148 ... 0.0403 ...

1 year ago | 1 answer | 0

### 1

Question

Real Coded Genetic Algorithm
What controls to using the real encoding in genetic algorithm - the variables which using in the problem - or the initial ...

1 year ago | 1 answer | 0

### 1

Question

How to plot an integral a function handle
I want to plot an integral function, if *'y'* is an arbitrary vector , N=51; I=@(x)norm(exp(-1i*pi*x)- y'.*exp(-1i*pi*x*(0...

1 year ago | 1 answer | 0

### 1

Question

What is the difference between function and objective function in MATLAB ?
To know how to applicate the objective function for in a better way, I want to find the difference between function and objec...

1 year ago | 1 answer | 0

### 1

Question

Dimension of the workspace array
l have this matlab code : N=51; f=[linspace(-1,-.18,164),linspace(-0.1,0.3,80),linspace(.38,1,124)]; d=[zeros(1,164),on...

1 year ago | 1 answer | 0

### 1

Question

Optimization with genetic algorithm
I have this objective function : E = @(x,y) norm((d(x)-r(x).*y).^2); I want to optimize vector *'y'* using ga ,...

1 year ago | 0 answers | 0

### 0

Question

Genetic Algorithm and Direct Search Toolbox
If i want to optimize a problem using genetic algorithm ,what is the appropriate, is it use : the type of matlab code in th...

1 year ago | 1 answer | 0

### 1

Question

Genetic algorithm optimization using toolbox
I want to optimize vector of complex coefficient (Contains negative values), but I wonder how can i chose the right tools . ...

1 year ago | 0 answers | 0

### 0

Question

How represent a discrete-time signal in Matlab ?
Basically need two vectors to represent a signal : - one vector : for horizontal axis (time) . - second vector : for ampli...

1 year ago | 1 answer | 0