MATLAB Answers

resistor with random variable number not working

2 views (last 30 days)
fima v
fima v on 29 May 2020
Commented: Ameer Hamza on 2 Jun 2020
Hello i have many simulink blocksets,
i have tried to put rf blockset in order to build a ressistor with random value in it as shonn bellow.
but its not working .Where did i go wrong?


Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 29 May 2020
There is no need to add randn(1) in the resistor value. As the documentation page mentions: you just need to tick the "Simulate noise" checkbox. In the resistance field, just type 50. Also, make sure that the "simulate noise" box is ticked in RF-blockset configuration block.


Show 5 older comments
Ameer Hamza
Ameer Hamza on 2 Jun 2020
It seems correct, but I am not entirely sure. You may need to do some experiments by connecting this block with the scope and observing the variation in voltage value.
fima v
fima v on 2 Jun 2020
another thing is that this voltage source is connected into an opamp where i have defined in the opamp some input noise.
Will the noise from the voltage source and input noise of the opamp will be in a conflict by MATLAB behavior? how they will play together?
Ameer Hamza
Ameer Hamza on 2 Jun 2020
It is difficult to predict. You will need to run the model to check if it works.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!