Problem 42504. Data Regularization
Solution Stats
Problem Comments
-
3 Comments
without loop makes it quite difficult..is there any particular built-in function to do this?
You do know that Matlab most certainly uses while and for loops to multiply matrices internally. The vectorized solution is probably faster because of parallelization and other optimization tricks, which we could also implement with the proper toolboxes.
And please add an space to strfind, or else It will find fors and whiles inside comments and even parameter names. I was using a parameter "Uniform" of the function cellfun and it took me a while to realize why it was failing the first test.
Solution Comments
Show commentsProblem Recent Solvers37
Suggested Problems
-
15734 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2739 Solvers
-
Remove the two elements next to NaN value
620 Solvers
-
96 Solvers
-
Divide elements by sum of elements
119 Solvers
More from this Author29
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!