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 "Table", 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 {< > ~=}, logical operators {|, &}, if, for, While and switch).


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

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

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

rounded answers in it.

5. Write the new matrix to the same Excel document to a sheet named "Butler"

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

Lihat lagi: matlab rounding, matlab rounding program, rounding program, vector set size, vector of ones, vector add, program find, program data vector, matlab floor, find operators, c vector array, array of vectors, max in matlab, xlsx, write matlab, new matlab, min-split, matlab program, matlab for, matlab find, matlab excel, matlab + it, fix a matlab, Data matrix, excel digit

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

ID Projek: #1573431

Dianugerahkan kepada:


You have a full function now. Please see PMB

$50 USD dalam sehari
(1 Ulasan)

5 pekerja bebas membida secara purata $58 untuk pekerjaan ini


Please see what I said.

$60 USD dalam 2 hari
(17 Ulasan)

Hello I can complete your project immediately, please check PMB

$50 USD dalam sehari
(0 Ulasan)

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

$30 USD dalam sehari
(0 Ulasan)

Hi, I have the program ready for you

$100 USD dalam 0 hari
(0 Ulasan)