Borrar filtros
Borrar filtros

How can I copy all elements, which > 4 to vector V?

3 visualizaciones (últimos 30 días)
Ihor
Ihor el 17 de En. de 2023
Respondida: Abhinav el 17 de En. de 2023
I have a M = magic(5) matrix. How can I copy all elements, which > 4 to vector V?

Respuesta aceptada

Abhinav
Abhinav el 17 de En. de 2023
M = magic(5);
V=M(M>4)

Más respuestas (0)

Categorías

Más información sobre Data Types 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