Extract positive numbers from matrix to matrix

4 visualizaciones (últimos 30 días)
Giulio Cornacchia
Giulio Cornacchia el 29 de Mzo. de 2021
Comentada: Giulio Cornacchia el 29 de Mzo. de 2021
I have a random M (m×n) matrix in the workspace, and i need to extract all the positive numbers and put them into another matrix called "P"

Respuesta aceptada

KSSV
KSSV el 29 de Mzo. de 2021
P = M(M>0) ; % where M is your matrix

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by