Problem 42590. Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the same column.
Results should have 2 significant digits.
You cannot use for/while loops.
Solution Stats
Problem Comments
-
3 Comments
Very nice exercise!
Good use of unfamiliar MATLAB functions!
Slight error in the problem definition. The solutions require two decimal places not two significant figures!
Solution Comments
Show commentsProblem Recent Solvers137
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
467 Solvers
-
Convert a numerical matrix into a cell array of strings
2242 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
390 Solvers
-
Determine the length of a string of characters
261 Solvers
-
Deleting an element in a matrix
480 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!