Filter löschen
Filter löschen

How can I multiply two horizontal and vertical vectors in simulink?

20 Ansichten (letzte 30 Tage)
saeid k
saeid k am 9 Aug. 2017
Beantwortet: Masoud Aminzadeh am 24 Apr. 2019
Hi everybody, I want to multiply two vectors in simulink, one of which is horizontal (the first one) and the other one is vertical. can anybody help me? thanks.

Antworten (2)

KL
KL am 9 Aug. 2017
Use the product block. If you double click on the block you could choose between element-wise or matrix multiplication but in both cases, your vector/matrix dimensions should agree!

Masoud Aminzadeh
Masoud Aminzadeh am 24 Apr. 2019
If you have created a constant block, disable 1D in it, then use product block and set this one for matrix multiplier. Do not forget to check for matching col's and row's in order to do matrix multiplication.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by