cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Eliminating zero values from matrices

mchristian
1-Newbie

Eliminating zero values from matrices

I have the following example matrix:

1     2     3

0     0     0

0     0     0

4     5     6

7     8     9    

0     0     0

1     1     1

I'm trying to write a function that processes this matrix to eliminate Zero values, such that result is:\

1     2     3

4     5     6

7     8     9

1     1     1

Any help/suggestions would be appreciated.

Thanks,

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:mchristian)

2 REPLIES 2
RichardJ
19-Tanzanite
(To:mchristian)

Here:

Thank you!

Top Tags