# Matlab-rounding program

Write a code that can round any number to any required digit. The numbers I was given as an example were in the first column of an excel document ([url removed, login to view]) in a sheet named &quot;Table&quot;, while the second column has the specified rounding digit.

The logic goes like this:

If you find 10 in the second column, then round the value of the first column to the nearest 10. If you find 0.001 in the second column, then round the value of the first column to the nearest 0.001, and so on.

Here are the constraints:

1. Your code should deal with any matrix size, so don’t write a code for 18x2 matrix!

2. At any point in this code you should NOT use any built-in functions (such as: round, ceil,floor, fix, max, min, find, …etc).

3. You can ONLY use (length, size, relational operators {&lt; &gt; ~=}, logical operators {|, &amp;}, if, for, While and switch).

Approach:

1. Used the provided matrix from the excel sheet (named it Table).

2. Split the matrix into two different vectors (called the first vector &quot;numbers&quot; and the second &quot;digits&quot;).

4. When you round the numbers, add a new column to the existing matrix Table and put your

5. Write the new matrix to the same Excel document to a sheet named &quot;Butler&quot;

A link to the excel document is attached. The first page are an array of numbers you can work with, and the second page is an example of how the result of your program should look if done correctly. However, the program should allow me to round any set of numbers to any decimal value, not just the ones in that document.

Kemahiran: Pemprosesan Data

Tentang Majikan:
( 28 ulasan ) Las Vegas, United States

ID Projek: #1573431

ntnghia3n3

You have a full function now. Please see PMB

\$50 USD dalam sehari
(1 Ulasan)
1.4

## 5 pekerja bebas membida secara purata \$58 untuk pekerjaan ini

ethicalboy

\$60 USD dalam 2 hari
(17 Ulasan)
4.2
ImageProcExpert

\$50 USD dalam sehari
(0 Ulasan)
0.0
klianx

SEE THE THE ATTACHED FILE i will finish the coding if you hire me

\$30 USD dalam sehari
(0 Ulasan)
0.0
trustedcoder

Hi, I have the program ready for you

\$100 USD dalam 0 hari
(0 Ulasan)
0.0