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?



採用された回答
Ameer Hamza
2020 年 5 月 29 日
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.
Ameer Hamza
2020 年 6 月 2 日
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
fima v
2020 年 6 月 2 日
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.
Ameer Hamza
2020 年 6 月 2 日
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.
fima v
2020 年 6 月 2 日
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
Ameer Hamza
2020 年 6 月 2 日
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
2020 年 6 月 2 日
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.
Ameer Hamza
2020 年 6 月 2 日
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!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
