Vector manipulation using SImulink

5 vues (au cours des 30 derniers jours)
Matt P
Matt P le 13 Fév 2020
Modifié(e) : Matt P le 14 Fév 2020
Hello All, I have two vectors. inp = [10, 20, 30, 40, 50] and the second one is: v = [1, 0, 1, 1, 0]. I need to consider only the respective elements which have value as 1 in the v vector and the output should be: out1 = [10, 30, 40] and out2 = [1, 3, 4] (One based Index)). This needs to be implemented only using simulink blocks. Please someone suggest a feasible solution.

Réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by