ressistors with small random offset in SIMULINK
Ältere Kommentare anzeigen
Hello , I want to have 10 resistors with a littles offset in resistance by random number arounk 1kohm
i have itried to use matlab simuling VAriable ressistor.
But i dont see how i enter there some random offset in the value.
Thanks.

11 Kommentare
Walter Roberson
am 27 Mai 2020
Under what circumstances should the random resistance change? For example can it be chosen once at the beginning of the run and will hold for the duration of the run? Or should it change (say) after every 3 seconds? Or do you want it to be different "every time" it is used (if so are you using continuous or discrete?) Or are you trying to model increased resistance as temperatures increase as the circuit gets warmer?
Walter Roberson
am 28 Mai 2020
Use a MATLAB function that does set_param() to modify the resistances .
fima v
am 28 Mai 2020
Walter Roberson
am 28 Mai 2020
That should be ones(1,10);
I am having difficulty figuring out which block you are looking at. The blocks I find with similar descriptions do not have the same icon, but the icon can be important as it gives information about which Domain you are working with. The PS on the icon hints to me you might be using Specialized Power Systems (SPS), but the discussion I find for variable resistors for SPS use quite a different approach.
fima v
am 28 Mai 2020
Walter Roberson
am 28 Mai 2020
Which Domain are you using? Are you using pure Simulink? Simscape Electrical? Specialized Power Systems?
fima v
am 28 Mai 2020
Walter Roberson
am 28 Mai 2020
I am having difficulty finding resistors in pure simulink. I find resistors in
- RF Blockset
- Simscape Electrical
- Specialized Power Systems
fima v
am 28 Mai 2020
Akzeptierte Antwort
Weitere Antworten (1)
Fangjun Jiang
am 27 Mai 2020
Bearbeitet: Fangjun Jiang
am 28 Mai 2020
0 Stimmen
This "Variable Resistor" is not the right one to use. This "Variable Resistor" represents a physical variable resistor in the lab where you can move a handle or turn a knob to adjust the value of the resistor. The "PS" port of this block can be connect to a motor (for example) to move the handle or turn the knob thus change the resistor.
To implement what you want, you just need to set "R=10e3-10+20*rand(10,1)" in workspace and drop 10 regular resistor blocks in your model, set the parameter for the first resistor to be R(1), ... and the last one to be R(10).
1 Kommentar
fima v
am 28 Mai 2020
Kategorien
Mehr zu 5G Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!