Deep-Learning-Based-Channel-Estimation-Schemes-for-IEEE-802.11p-Standard icon indicating copy to clipboard operation
Deep-Learning-Based-Channel-Estimation-Schemes-for-IEEE-802.11p-Standard copied to clipboard

Getting error when running the main.m file

Open long1216 opened this issue 3 years ago • 2 comments
trafficstars

Hello, when I attempted to follow the steps from the instruction, I get the below error at the beginning. I am not familiar with Matlab but I'm interested in the part of deep learning. I am using Matlab R2022a.

Error using comm.RayleighChannel/step
Changing the complexity (from real to complex) on input 1 of System object
comm.RayleighChannel is not allowed without first calling the release() method.

Error in Channel_functions/ApplyChannel (line 63)
y = step(rchan, X(:));

Error in main (line 177)
        [ h, y ] = ch_func.ApplyChannel( rchan, IFFT_Data_CP_Preamble_Coded, K_cp); - Show complete stack trace
 
Displaying stack trace:
Error using Channel_functions>Channel_functions/ApplyChannel (line 63)
	   • In Channel_functions>Channel_functions/ApplyChannel (line 63)
	   • In main (line 177)

Would you mind helping me? Thank you so much.

long1216 avatar Nov 15 '22 11:11 long1216

Hello, when I attempted to follow the steps from the instruction, I get the below error at the beginning. I am not familiar with Matlab but I'm interested in the part of deep learning. I am using Matlab R2022a.

Error using comm.RayleighChannel/step
Changing the complexity (from real to complex) on input 1 of System object
comm.RayleighChannel is not allowed without first calling the release() method.

Error in Channel_functions/ApplyChannel (line 63)
y = step(rchan, X(:));

Error in main (line 177)
        [ h, y ] = ch_func.ApplyChannel( rchan, IFFT_Data_CP_Preamble_Coded, K_cp); - Show complete stack trace
 
Displaying stack trace:
Error using Channel_functions>Channel_functions/ApplyChannel (line 63)
	   • In Channel_functions>Channel_functions/ApplyChannel (line 63)
	   • In main (line 177)

Would you mind helping me? Thank you so much.

Excuse me, I met the same error. Have you solve this question?

RHETTLIU03 avatar Jan 16 '25 07:01 RHETTLIU03

I think the Error in the stacktrace is pretty clear, from the Docs,

To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object named obj, use this syntax: release(obj)

So, you would have to release the channel before using it to modify in Channel_functions/ApplyChannel (line 63)

release(rchan);
y = step(rchan, X(:));

ramanan-73 avatar Jan 23 '25 15:01 ramanan-73