Question

how to rectify this error Error using .* (line 262) Disciplined convex programming error: Invalid quadratic form(s): not a square. Error in * (line 36) z = feval( oper, x, y ); Error in itcm_31 (line 20) f(p,p)=(log2(1+(alpha_o

if true H1=[0.4232 0;0 0.5345]; H2=[0.35477 0;0 0.423]; Q1e=[0.1 0;0 0.14332]; Q2e=[0.4 0;0 0.001]; QR1e=[0.2 0;0 0.0...

1 year ago | 0 answers | 0

Question

i am trying to use fmincon for optimization problem i am getting below error

suppose my objective function named as objfun.m and i have to optimize four variables in that.i written objective function in th...

2 years ago | 0 answers | 0

Question

how to save matlab figure in format of .fig

i am using R2016a and trying to save figure as .fig. it saves but when i opening the figure it is open the matlab code not openi...

2 years ago | 1 answer | 0

Question

how to find symprod for double type values if i take it as seperate function. I am getting this error Undefined function 'symprod' for input arguments of type 'double'. Error in practise (line 5) y=symprod(x,j,1,3);

function y= practise(k) k=2; x=(rand(4)).*k; syms j; y=symprod(x,j,1,3); end

2 years ago | 2 answers | 0

Question

how to divide 90*90 size matrix into 3*3 windows

i=rand(90); b=3*ones(10,1); c=mat2cell(i,b,b);

2 years ago | 1 answer | 0

Question

suppose x=[1 2 3 4 5 6] and y(1)=[1 2],y(2)=[3 4],y(3)=[5 6].how can i take like this in matlab

x=1:6; j=1:2:6 for i=1:3 for k=1:length(j) y(i)=[x(k) x(k+1)]; end end

2 years ago | 2 answers | 0

Question

I want to install 2015b for 32-bit windows 7 in my PC please tell me where can i download

before i used 2013a.now it is expired.how can i download 2015b version matlab software

2 years ago | 1 answer | 0

Question

how to generate m-sequence in matlab

in mathworks there is some code for generation of m- sequence.but it is very lenthy.is there any simple command to generate m-s...

2 years ago | 1 answer | 0

Question

x is 521*1 vector.i wanna to access x values except the positions of 1:16:512.

x=rand(512,1); p=1:16:512; disp(x(p)) % it displays 1 value,17 value like that i want to display the remainig positio...

2 years ago | 1 answer | 0

Question

how can i generate 100*12 unitary complex matrix in matlab. can anyone plese tell me

i take randomly but it is not satisfy the condition conjugate transpose of matrix is equal to its inverse. rng(10) a=randn(10...

2 years ago | 1 answer | 0

Question

hi,i want to write matlab code for the given eq. plese help me

INt=eye(100,1); mean=0; sigma_2=1/100; r1=1/(sqrt(2*pi*sigma_2)); zgk=r1*exp(-INt.^2/(2*sigma_2));

2 years ago | 1 answer | 0

Question

I want to generate Q, a 100*12 matrix, such that conjugate transpose(Q)*Q=I(12*12 identity matrix). Please tell me how to generate that matrix.

I am using the following code: rng(10) Q=randn(100,12)+1i*randn(100,12); QH=ctraspose(Q); % conjugate transpose of Q ...

2 years ago | 1 answer | 0