Filter löschen
Filter löschen

How can I compare if it is a matrix is 3x2? in if or switch statement

3 Ansichten (letzte 30 Tage)
I'm trying to compare that if a system of equations that is an augmented matrix is of such a dimension (3x2) make the case 1 in switch statement to solve that system
switch m == [(2,:),(:,3)]

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 2 Nov. 2017
if all(size(m)==[3,2])

Weitere Antworten (0)

Kategorien

Mehr zu Dynamic System Models 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