A résolu


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

environ 2 ans il y a

A résolu


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

environ 2 ans il y a

A résolu


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

environ 2 ans il y a

A résolu


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

environ 2 ans il y a

A résolu


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

environ 2 ans il y a

A résolu


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

environ 2 ans il y a

A résolu


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

environ 2 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

environ 2 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

environ 2 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

environ 2 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 2 ans il y a

A résolu


Find Logic 27

environ 2 ans il y a

A résolu


Find Logic 26

environ 2 ans il y a

A résolu


Find Logic 23

environ 2 ans il y a

A résolu


Find Logic 22

environ 2 ans il y a

A résolu


Find Logic 15

environ 2 ans il y a

A résolu


Find Logic 18

environ 2 ans il y a

A résolu


Find Logic 19

environ 2 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

environ 2 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

environ 2 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

environ 2 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

environ 2 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

environ 2 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

environ 2 ans il y a

A résolu


Energy Conversion 2

environ 2 ans il y a

A résolu


Energy Conversion 1

environ 2 ans il y a

A résolu


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

environ 2 ans il y a

A résolu


Temperature Conversion 2

environ 2 ans il y a

A résolu


Temperature Conversion 1

environ 2 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 2 ans il y a

Charger plus