Problem 2457. Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix
x = [208 40 167 180 112 70 192 215 90 19
231 100 9 100 97 100 65 100 100 100
32 245 100 70 195 167 129 208 149 135
233 124 239 100 203 41 178 62 140 199
161 204 173 24 100 30 228 237 234 239
24 36 193 210 125 127 245 89 73 33
71 107 190 177 114 245 140 100 193 145
140 100 100 81 165 87 35 64 192 120
245 202 167 100 181 149 38 157 100 100
100 245 100 100 193 100 100 121 145 86];and find out Computation time using tic and toc this a challenge that who can give minimum computation tile
i got t = 6.1917e-04 sec for Intel® Core™2 CPU 6400 @ 2.13GHz and RAM 4GB
do yourself and update values of t
Note : Sysconfig is Not an issue finally we can analyze that so u can do by ur own machine and specify ur configuration
Solution Stats
Problem Comments
-
3 Comments
tell me how to find the 't'
tic
Find_And_Replace(x);
t = toc;
I'm not sure how the computation time matters here. Is it just for our personal benefit? A solution will pass even if it is very slow.
Solution Comments
Show commentsProblem Recent Solvers111
Suggested Problems
-
23113 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3481 Solvers
-
Getting the row and column location from a matrix
293 Solvers
-
315 Solvers
-
440 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!