How to modify the input property of called seed of the system object nrTDLChannel?

조회 수: 1 (최근 30일)
Hello,
I am using the system object nrTDLChannel in the simulation. After calling the object, for one particular consition I want to change the seed of the object nrTDLChannel. Since most of the input properties are nontunable that's why I am wondering what is the currect way of chaning the seed.
I am doing it in the following way.
channel = nrTDLChannel;
For loop
if condition
reset(channel);
release(channel);
channel.Seed = randi(2^32+1)-1;
end
end
It would be very helpful if you can tell me is this the right way of chaning the properties of nrTDLChannel or not.
Thanks

채택된 답변

Gokul Nath S J
Gokul Nath S J 2023년 5월 26일
Hi Sanju,
It seems that you would like to change the channel properties. Please note that you can use the regular dot notation and change the channel properties as you have mentioned in your code. However, I am not sure why you have used the for loop for changing the channel condition. You can directly change the channel condition by called the specific quantity and rewriting it with the new value.
For more information on this issue, kindly go through the following link.
with regards,
Gokul Nath S J

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 End-to-End Simulation에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by