compare and combine matrix

A=[2 7 9 7;3 1 5 6;8 1 2 5]
Use abs statement to filter elements > 2 of matrix A into the matrix
C=[0 7 9 7;3 0 5 6;8 0 0 5]

Answers (1)

Nguyen kien
Nguyen kien on 11 Nov 2018
Use abs to fliter element of matrix

This question is closed.

Asked:

on 11 Nov 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!