Using vectors as input in simscape interface
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nicholas Ootani
am 5 Jul. 2021
Beantwortet: David John
am 3 Aug. 2021
Hello everybody,
I have the following problem. A sine wave as an input to a gain circuit. The gain is set to 2, so as a response in the scope block should be double of the input signal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/675128/image.jpeg)
My question here is, is there a way to input a vector into the simscape interface?
something like,
set_param('Simplified_vector/Sine', 'Amplitude', [1; 2; 3] );
and get the output in the scope as 3 curves multiplied by 2.
0 Kommentare
Akzeptierte Antwort
David John
am 3 Aug. 2021
Vectors are usable in Simscape, but only if the blocks in your model also support vectors. In this case, they don't. The electrical domain is scalar, so you would either need to define three separate networks that are all identical (easiest if you use subsystem reference) and split out the components of your input vector, or you would need to define blocks in a three-phase domain.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Electromagnetic Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!