Question


combine for loop and ~isinf,but there is an error in every loops except the result in the first loop
I use ~isinf and a for loop to make a code,in this code ,i want to let the un-Inf value to show me in each loop,however,i found ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How can i know what is the n when the nth is the smallest or biggest
How can i know what is the n when the nth is the smallest or biggest,for example A=[10 2 3 4 50] mimn=min(A) I can use the mi...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


Why does it seem that the ~isinf(cvx_optval) and co( ~isinf(cvx_optval)) are both not work
I write a code to produce cvx_optval,however,in some result of the loop is inf,so i use the "~isinf" to know how many value is n...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Can we sum a series of values,even some of them are "Inf"?If i want to do it,how can i do?
I get a series answer of optimal problem in several times,and i want to sum of them and average them,however, some of them are "...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How do i average all result in total loop,if some result in some of loop are NaN
Using matlab R2015a I want to sum lots of numbers, and each number is the result of optimal problem in each time of loop,howeve...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Can we sum a series of values,even some of them are "NaN"?If i want to do it,how can i do?
I get a series answer of optimal problem in several times,and i want to sum of them and average them,however, some of them are "...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Create a zero mean complex gaussian,but its mean and pseudocovariance are not zero
I create zero mean circularly symmetric complex gaussian according to this website: https://stackoverflow.com/questions/1408993...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


How do i know the time of every sub-functions and every loops in a main function?
How do i know the time of every sub-functions and every loops in a main function? i know i can just use tic..toc but i am not...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Lotto code,the previous number cannot appear again,how do i improve it?
i want to write a lotto code,and there are six numbers in it,the range of first six numbers is 1 to 38,the range of last number ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to write a code to avoid a random number won't be generated again?
I want to write a Lotto code,the first six number will come from the first part,there will be 38 numbers,1~38, in the first part...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Why do we set r=r+1 when (x(t)-rangeX(r))*(x(t)-rangeX(r+1))>0 in the uniform variables code
a=3; b=7; T=10^6; BinW=0.01; x=zeros(1,T); rangeX=3:BinW:7; Count=zeros(1,length(rangeX)-1); for t=1:T ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


If i want to use the other m.file in a single m.file,is there any instruction code i can use?
If i have three m. files,codeA,codeB and codeC,now i will use codeB and codeC to find something in my codeA,first m file,is ther...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


What instruction code can i use if i want to update the former parameter value by using the latter parameter value ?
I write a code ,and the latter part of code will produce a new parameter value to update the parameter value in the former part ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to write the code of eigenvalue decomposition (EVD) ?
If i have a matrix A,and ignore the rank-1 constraint for each matrix A,and A=a times a^H,that is ,(A=a a^H),and we can obtain a...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Does anyone know how to modify the error (Disciplined convex programming error: Illegal operation: pow_p( {convex}, {-1} ))
i write a cvx code by using matlab ,and the window show me a error ,but i don't know its meaning and how do i modify my code T...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Is the code of ZMCSCG channel like this ? h_1=sqrt(1/2)*(randn(N,1)+1i*randn(N,1));
I saw a paper,and it said we represent by h_K is N by 1 matrix,the channel vector between the N-antenna TX and the single-antenn...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


How to modify the error when the window sow me Invalid constraint: {complex affine} >= {real affine}
I want to write a code about optimal,so i use cvx in matlab,the picture below is what i want to write %declare K=4; N=4; ...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


extract the 16 elements (4 by 4 matrix) from a big matrix
Now i have a 4 by 16 matrix,we assume this matrix called A 1 2 1 2 5 6 5 6 9 10 9 ...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


Using the matlab to achieve the a(k)+a(j) when k is not equal to j in every stage
i want to write a code which is a(k)+a(j), but k can't be equal to j,then sum it every stage ,i mean when k=1,sumj=a(k)+a(j)=...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to extract a matrix from a series matrix in matlab?
How to extract a matrix from a series matrix in matlab? I mean F_1,F_2,F_3 and F_4 are all 4*4 square matrix,now i want to ext...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How do i create lots of gaussian channel?
How to build K gaussian channel code in matlab ? i mean if $h_1,h_2,...,h_K$ are all gaussian channel,how do i write this code i...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Can my code be written like this?
i want to write this formula as code in matlab,but i am not very sure that is my code right. The range of j and k are both 1~...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to write the variance of zero-mean circularly symmetric complex gaussian noise?
I need the gaussian noise and the zero-mean circularly symmetric complex gaussian noise,however, i don't know how to write the c...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Does anyone have any similar question type for this ? Using DCP ruleset to derive the formula nu using cvx in matlab
The author said that OP4 satisfy the DCP ruleset,so i can obtain the P* ,P_ub, formula like this,so does it means that i jus...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


I can not use the " lhs " instruction,but it seems that lots of people can use it.What is the problem ?
I take this " https://de.mathworks.com/matlabcentral/answers/436044-is-there-anyone-to-help-me-for-lagrange-multipliers-method...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


How do i write the code of lagrange multiplier in lagrange function?
How do i write the code of lagrange multiplier in lagrange function ? Because the lagrange multiplier is a varible ,like x,y,z.n...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to write a summation code when the k is not equal to j
I want to write the code like this,and the rage of k is 1 to K,but i don't know how to write the " j is not equal to k" this su...

mer än 5 år ago | 2 answers | 0

2

answers

Question


Is there anybody that have PAPR reduction in OFDM code ?
I don't know how to write an PAPR reduction in OFDM code,and i need a example code to understand and rewrite it.i have found so...

mer än 5 år ago | 1 answer | 0

1

answer

Question


Improving the code to change the dimension of the variable.(about the autocorrelation and autocorr)
<</matlabcentral/answers/uploaded_files/130459/%E6%8F%901.PNG>> <</matlabcentral/answers/uploaded_files/130460/%E6%8F%902.PNG...

mer än 5 år ago | 0 answers | 0

0

answers

Load more