resistor with random variable number not working
显示 更早的评论
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?



采纳的回答
There is no need to add randn(1) in the resistor value. As the documentation page mentions: https://www.mathworks.com/help/simrf/ref/variableresistor.html 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.
8 个评论
Hello Ameer , in the following manual i have found Tollerance option.
is there a way to have such "tollerance" option to a voltage source?(so i will have a small random option to a DC source) i need 255 such sources for 8bit flash adc.
Which voltage source are you referring to? For example, this voltage source has the option to enable noise: https://www.mathworks.com/help/releases/R2020a/physmod/sps/ref/voltagesource.html
Hello Ameer, i am looking for avoltage source with a little offset (set randomly aroundsome DC value) exactly like the tollerance option in the resistor..
It would be great if you could recomment me such a component.
Thanks.
The voltage source suggested in my last comment does that. You can specify the power of the noise signal and it will add that noise to nominal DC value.
Hello Amer that the problem i hace a DC source for example 1V
i want it to vary by 0.1V so you say i should add 0.01 V^2/Hz in the noise to represent it?
Thanks
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.
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?
Thanks.
It is difficult to predict. You will need to run the model to check if it works.
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Sources 的更多信息
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
