Clear Filters
Clear Filters

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

3 views (last 30 days)
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)]

Accepted Answer

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

More Answers (0)

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!