Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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)]

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Dynamic System Models en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by