How would you create matrix using three other matrix but extracting certain columns out of each one?
a = [1 3 5 b = [2 7 9] c = [2
3 6 8 3
4 7 8] 5]
taking the 2nd & 3rd column of a then place b after then c
like [ 3 5 2 2
6 8 7 5
7 8 9 5]

 Akzeptierte Antwort

Matt J
Matt J am 20 Sep. 2020
Bearbeitet: Matt J am 20 Sep. 2020

0 Stimmen

[a(:,2:3),b(:),c]

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Gefragt:

am 20 Sep. 2020

Bearbeitet:

am 20 Sep. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by