질문

when i use inv to find the inverse matrix of A,i found inv(A)*A is not the identity matrix

Why when i use inv() to find the inverse matrix of matrix H_AB'*H_AB,but their multiplication is not an identity matrix? H_AB =...

4일 전 | 답변 수: 1 | 0

질문

Why can't i plot a bar figure like this example?

I want to plot a bar figure like this example,just take this example as a reference https://www.mathworks.com/help/matlab/ref/b...

10일 전 | 답변 수: 1 | 0

질문

How do i generate 10 random matrix and store them?

I want to generate 10 random matrix ,H_AB ,and store them in to H_AB_store ,here is my original code At=7; Br=2; rw=10 H_A...

13일 전 | 답변 수: 1 | 0

질문

Are the code of complex gaussian and rayleigh fading the same in the matlab?

Are the code of complex gaussian and rayleigh fading the same in the matlab?if there variance are both 1 i think their code sho...

21일 전 | 답변 수: 0 | 0

질문

How to write a code to calculate the f '(3)?

If f(x)=,then i want to know what is the value after i differential it and replace x with 3 I mean first i calculate f ' (x)=,t...

약 1달 전 | 답변 수: 1 | 0

질문

How to write a code which can decrease the range of the answer until we get the right value?

I want to write a code which can help me decrease the range of answer until i find it.For example,S=0:0.001:1;and i have to find...

약 1달 전 | 답변 수: 0 | 0

질문

Is my code of rayleigh fading right?

Is my code of rayleigh fading right? H_A=1/sqrt(2)*[randn(2,6) + i*randn(2,6)]; Because it seems that i just create a AWGN cha...

약 2달 전 | 답변 수: 0 | 0

질문

If the values are almost equal to each other,how do i plot the figure to see its curve? (not straight line )

If the values are very similar to each other,how should draw them to see their different? I mean if the window show me when ...

약 2달 전 | 답변 수: 2 | 0

질문

How do i modify the code when a=0,a=0.1,...,a=0.9,a=1

I want to calculate the Ps when a=0.1,a=0.2,....,a=0.9,a=1.0 , so i think i should have 11 different Ps number,however,the windo...

약 2달 전 | 답변 수: 0 | 0

질문

How do i modify the code when a=0,a=0.1,...,a=0.9,a=1

I want to calculate the Ps when a=0.1,a=0.2,....,a=0.9,a=1.0 , so i think i should have 11 different Ps number,however,the windo...

약 2달 전 | 답변 수: 0 | 0

질문

How to find the nth is the higher than and closest to 0.3

A=[5 56 6.1 0.29 0.32 15 ] I want to find a value which not only be the closest to 0.3,but also higher than 0.3 As we know ,0....

약 2달 전 | 답변 수: 2 | 0

질문

How do i write a code which can calculate the null space basis of two random matrix?

How do i write a code which can calculate the null space basis of two random matrix? a=randn(5,3) b=randn(5,3) c=null([a;b])...

약 2달 전 | 답변 수: 1 | 0

질문

What is the different between "null" command and "svd" command

If there is a 5 by 3 matrix H ,i can use SVD to find the null space of H.But i find there is a "null "command,which can help me ...

약 2달 전 | 답변 수: 1 | 0

질문

How do i write a code which can calculate the cross production of two vectors?

How do i write a code which can calculate the cross production of two vector ? Both of these two vectors are 1 by 5 vector At ...

약 2달 전 | 답변 수: 1 | 0

질문

If i generate the complex gaussian in this method,are the sub-matrix all complex gaussian?

The main goal is to create 4 complex gaussian matrix ,h1~h4,each gaussian matrix is 4 by 1 matrix,and the direct method is h1...

6달 전 | 답변 수: 0 | 0

질문

Which is right for complex noise CN(0,N0/2)?

I want to create a complex gaussian noise CN(0,N0/2),which code is correct? noise=(randn(1,n)+1i*randn(1,n))*sqrt(N0/2) or no...

7달 전 | 답변 수: 0 | 0

질문

How to write the code to plot these two figure by using matlab? error probability and data rate in MIMO

I want to use Matlab to plot these two figures,fig(a) is the error probability,and as we can see,the higher M is,the lower error...

7달 전 | 답변 수: 0 | 0

질문

Why do i need to divided by log2(M) * Ts instead of Ts ? For the symbol error rate of 8-PSK

I saw this code of 8-PSK in the internet,and i don't know why do i need to divided by log2(M) * Ts instead of Ts code: M=8...

7달 전 | 답변 수: 1 | 0

질문

The conditional statements of 2-PAM,8PAM and 16PAM

I take this: https://www.mathworks.com/matlabcentral/fileexchange/19587-symbol-error-rate-in-4-pam-modulation as a reference to...

7달 전 | 답변 수: 0 | 0

질문

Why do we need to write the noise as randn(2,1)./sqrt(2*SNR) instead of randn(1,1)/sqrt(2)?

I saw this code, about the error probability of on/off signal ,on the internet Ts=10^4; SNR_dB=[-3 0 3 6 9]; Ne=zeros(1,lengt...

7달 전 | 답변 수: 0 | 0

질문

Why is the last simulation value is "0",i can't find where is wrong

I write an error probability of anti-podal,however,i found the last simulation value is zero,it means that there is no any erro...

7달 전 | 답변 수: 1 | 0

질문

Why does my code become like this?why does it happen?

Yesterday i run the code,and it still keep running ,and i found the code become this below suddenly,why?Why does my code become ...

8달 전 | 답변 수: 1 | 0

답변 있음

Why does the window show me Number of columns on line 9 of ASCII file GOA_algorithm_2.m must be the same as previous lines,and my both subroutine are m.files

In the second code,we can see this line in the begining load('GOA_algorithm_2.m','P_q') So,this means we have to load the "P_q...

Why does the window show me Number of columns on line 9 of ASCII file GOA_algorithm_2.m must be the same as previous lines,and my both subroutine are m.files

In the second code,we can see this line in the begining load('GOA_algorithm_2.m','P_q') So,this means we have to load the "P_q...

8달 전 | 0

| 수락됨

질문

Why does the window show me Number of columns on line 9 of ASCII file GOA_algorithm_2.m must be the same as previous lines,and my both subroutine are m.files

I want to run this main file with two subroutines ,but the window always show me Error using load Number of columns on line ...

8달 전 | 답변 수: 1 | 0

질문

Is there any instruction can ignore the "0" value and find the minimum value of a matrix ?

Is there any instruction can ignore the "0" value and find the minimum value of a matrix ? I mean ,if i assume A=[0 1 2 3] How...

8달 전 | 답변 수: 1 | 0

질문

Why will window show me "Improper assignment with rectangular empty matrix" sometimes?

Why will window show me "Improper assignment with rectangular empty matrix" sometimes? It seems this error should tell me ,the...

8달 전 | 답변 수: 0 | 0

답변 있음

Why are the values ,the result of rho_k, are the same?it shouldn't be the same

The original code is like this bdc=4 lkk=1:bdc %lkk=1, 2, 3, 4 lkkspace=zeros(1,bdc) % for rho_k=0:0.2:0.6 code A ...

Why are the values ,the result of rho_k, are the same?it shouldn't be the same

The original code is like this bdc=4 lkk=1:bdc %lkk=1, 2, 3, 4 lkkspace=zeros(1,bdc) % for rho_k=0:0.2:0.6 code A ...

8달 전 | 0

| 수락됨

질문

Why are the values ,the result of rho_k, are the same?it shouldn't be the same

First, i introduce the code A, this code A can help me find the minimum value when the rho_k=0.6, and the loop does the code for...

8달 전 | 답변 수: 2 | 0

질문

why does the window show me x3=27 when x3=1:2:50?

I wrote this code ,and the c3 can be a vector ,the elements in this vector is the result of every loops,however,i found that the...

8달 전 | 답변 수: 1 | 0

질문

I have improve the code for mean some element,some of them are inf, in a for loop,however,the window show me an error

rho_k_up=[0:0.1:1] ad = [] for cyclew=1:length(rho_k_up) bd=10 for dd=1:bd %%%%%%%%%%%%%%%%%%%%%%%%%%%%...

8달 전 | 답변 수: 0 | 0