-
3 Comments
Karthik Raja Arumugam
on 12 Feb 2014
Can anyone please tell me how to reduce this size?
Christopher Creutzig
on 24 Jul 2014
You already use vectorized assignment. Carry that further and get rid of the for loop.
Brian Butler
on 14 Nov 2015
The functions sum() and prod() can reduce row-wise to bring out NaN values. Thus, this express produces logicals for whether each row is in or out...
~isnan(prod(A,2))
Suggested Problems
-
1357 Solvers
-
4418 Solvers
-
839 Solvers
-
Sum the numbers on the main diagonal
590 Solvers
-
4028 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!