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

3 次查看(过去 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 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by