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

3 次查看(过去 30 天)
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)]

采纳的回答

Roger Stafford
Roger Stafford 2017-11-2
if all(size(m)==[3,2])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dynamic System Models 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by