Question

Peak magnitude and peak ripple magnitude

I have a signal how can i know the peak magnitude of it? does it mean '' peak ripple magnitude'',what is the difference betweenp...

5 months ago | 0 answers | 0

Question

The precision of plot filter design function is different than plot just coefficients of the same function of filter

I'm confused about plotting the design filter with the same precision ,for example i have this coefficients (i found it by usin...

6 months ago | 1 answer | 0

Question

Extraction the magnitude responce point

I have this code matlab >> w = -pi:pi/500:pi; >> H = freqz(ones(1,10)/10,1,w); >> subplot(211) >> plot(w,abs(H)) >> grid; a...

6 months ago | 0 answers | 0

Question

Select numbers from a vector under a specific condition

I have this code for i=1:5; minValue = 0.0251; maxValue = 3.9811 / 5; % Divide by 5 to ensure sum of 5 is less than 3.9811 ...

7 months ago | 2 answers | 0

Question

Loop iteration with condition met

I have this program in matlab close clc %%%%%%%%%%%%%%%% Tol = 0.5;ma=10;t=[1 2];B=[];loopEnd=3; myData = zeros(ma,loopEnd);...

8 months ago | 1 answer | 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...

10 months ago | 2 answers | 1

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...

11 months ago | 3 answers | 0

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...

11 months ago | 1 answer | 0

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(...

11 months ago | 1 answer | 0

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 ...

11 months ago | 1 answer | 0

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...

12 months ago | 1 answer | 0

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] ...

1 year ago | 0 answers | 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...

1 year ago | 1 answer | 0

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...

2 years ago | 1 answer | 0

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...

2 years ago | 2 answers | 0

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...

2 years ago | 0 answers | 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)....

2 years ago | 0 answers | 0

Question

Question about Matlab coder

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

2 years ago | 1 answer | 0

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 ...

2 years ago | 1 answer | 0

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 ...

2 years ago | 1 answer | 0

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...

2 years ago | 1 answer | 0

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...

2 years ago | 1 answer | 0

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...

2 years ago | 1 answer | 0

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 ,...

2 years ago | 0 answers | 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...

2 years ago | 1 answer | 0

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 . ...

2 years ago | 0 answers | 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...

2 years ago | 1 answer | 0

Question

How to define integral function in objective function

I want to minimize the The objective function using least squares method. The objective function is :E=|d(x)-r(x)*Fi|^2 Th...

2 years ago | 0 answers | 0