Question

Load .mat file from anyfolder

I have to load .mat file from a folder in my workspace. Can anyone tell me how to do so?

4 years ago | 1 answer | 0

Question

Global optimization in MATLAB

I have to find x that minimizes: sigma{k}(x'*A_k*x - b_k)^2 where A_k are 4 x 4 positive definite matrices (A_1, A_2,....

4 years ago | 0 answers | 0

Question

Quadratic Optimization using Newtons Method

I am writing Newtons method to solve an optimization problem. I have written the following code: function estimate = n...

4 years ago | 0 answers | 0

Question

Solving Optimisation Problem with Rank Constraint in MATLAB

I have a typical least squares problem, i.e I have to find the value of x that minimizes norm of C∗x(:)−d. C is 180x16 matrix(C ...

4 years ago | 1 answer | 0

Question

Representing a matrix as a product of two matrices in MATLAB

I have a 4x4 matrix of complex numbers, say X = [0.4079 + 0.0000i 0.7532 + 0.0030i 0.9791 + 0.0272i 0.9335 - 0.0036i;...

4 years ago | 2 answers | 0

Question

lsqnonneg function without constraints

lsqnonneg function of MATLAB helps to find value of x that minimizes norm of|C*x - d| subject to x >= 0. However, I want to find...

4 years ago | 1 answer | 0

Question

Optimization using lsqnonneg function

I have to find value of x that minimizes norm of|C*exp(x) - d| subject to x >= 0. I am finding the value of exp(x) that minimize...

4 years ago | 0 answers | 0

Question

Save a matrix in MATLAB

I have a 100x100 matrix in MATLAB and I want to save it in matlab format. Is there a way to do so in MATLAB?

4 years ago | 1 answer | 0

Question

Representation of a signal in mathematical form

I have been given a signal defined in MATLAB as signal = randn(1,1e6); Does anyone have any idea how to represent this sig...

4 years ago | 1 answer | 0

Question

Normalization of a matrix to a particular value

I have a 12x4 matrix with four of its elements having value of 1 and with remaining elements having value less than 1. I want to...

4 years ago | 1 answer | 0

Question

Normalization of a signal to a particular value

I have a signal, say a= randn(1,1e4) + irandn(1,1e4); I normalize this signal a to power 1 by simply multiplying it by sqr...

4 years ago | 1 answer | 0

Question

Correlation between two random signals

I have two signals in MATLAB, say a = randn(1,1e6) + randn(1,1e6)*exp(-1i * 2*pi * 1.1); b = randn(1,1e6) + randn(1,1e6)*e...

5 years ago | 2 answers | 0

Question

Range of quantizer to avoid clipping of transmitted signal

I have a signal ,say s = sqrt(0.5) * (randn(1,10000) + 1i * randn(1,10000)) After quantizing it to say 512 levels, I obser...

5 years ago | 1 answer | 0

Question

corrcoef function of MATLAB

I am finding the cross correlation coefficient of two complex signals by using corrcoef function of MATLAB. The signals are vect...

5 years ago | 2 answers | 0

Question

Hermitian transpose of a vector with complex elements

I have a vector containing elements with real and imaginary parts and I want to find the hermitian transpose of this vector. Doe...

5 years ago | 2 answers | 0

Question

Quantizing a complex signal with uniform quantizer

I have a signal that has complex normal distribution with mean 0 and variance of 1. I want to quantize it with a uniform quantiz...

5 years ago | 1 answer | 0

Question

Mean of rows and columns of several matrices in a cell

I have say 'n' axb matrices and i want to generate a new matrix of dimension axb which is the mean of all 'n' axb matrices, i.e ...

5 years ago | 1 answer | 0

Answered

Returning minimum row index of an array

If you want to know the row or column indices of any element in a matrix, use the 'find' function of matlab. For example, [ro...

Returning minimum row index of an array

If you want to know the row or column indices of any element in a matrix, use the 'find' function of matlab. For example, [ro...

5 years ago | 0

Question

random numbers between a and b with specified mean and variance

I am using a + b*rand() to create uniformly distributed variables between [a,b]. But I want to create the same with a specified ...

5 years ago | 3 answers | 0

Question

Error while computing mean of a row vector

I am getting the following error while finding out the mean of a row vector(using the mean function of matlab) containing ten el...

5 years ago | 1 answer | 0