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