Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimensions incompatible #2

Open
keerthanab204 opened this issue Feb 14, 2020 · 2 comments
Open

Dimensions incompatible #2

keerthanab204 opened this issue Feb 14, 2020 · 2 comments

Comments

@keerthanab204
Copy link

I am trying to obtain channel realizations for the following scenario:
network = 'IndoorHall_5GHz'
Band = 'Wideband'
Link ='Single'
Antenna = 'MIMO_dipole'
scenario = 'LOS'
Ntx = '32' and Nrx = '1'
I just run the downloaded code and haven't changed anything else. I am getting the following error:

Unable to perform assignment because the size of the left side is 1-by-32 and the size of the
right side is 32-by-32.

Error in get_H (line 102)
H(tauInd,:,:) = (H(tauInd,:,:))+channel.h(m,6)*sqrt(Tx)*sqrt(conj(Rx'));

Error in demo_model (line 413)
h = get_H(channel, Gtx, Grx, txRot,rxRot,paraEx); % h[delay, rx, tx]

It would be of great help if you can guide me through this. Thank you

@michael-koller-91
Copy link

michael-koller-91 commented Jun 23, 2020

This is due to a bug in the file get_dipole_G.m. If you take a look at line 79, you will see that the transmit antenna response is used twice: once for the transmit array and once for the receive array.

This explains why you get a 32-by-32 array instead of 1-by-32. The receive antenna response is computed but ignored.

@ironman1996
Copy link

This is due to a bug in the file get_dipole_G.m. If you take a look at line 79, you will see that the transmit antenna response is used twice: once for the transmit array and once for the receive array.

This explains why you get a 32-by-32 array instead of 1-by-32. The receive antenna response is computed but ignored.

Your reply is very good. I met a problem, too. My simulation parameters are showed below:

Network = 'SemiUrban_300MHz';
Link = 'Single';
Antenna = 'MIMO_dipole';
Band = 'Wideband';
Ntx=32;
Nrx=1;

When I excuted the code, I get a fig called 'Frequency response for the channel between antenna 1 at Rx side and antenna 2 at Tx side' shows that all of the frequency response are same. Do you know how to fix this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants