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?

circa 4 anni 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,....

circa 4 anni 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...

circa 4 anni 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 ...

oltre 4 anni 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;...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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?

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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 ...

oltre 4 anni 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...

oltre 4 anni 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 ...

oltre 4 anni 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...

oltre 4 anni ago | 1 answer | 0