A résolu


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

presque 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.

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


Mass Conversion 2

presque 2 ans il y a

A résolu


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

presque 2 ans il y a

A résolu


Square a Number
Given an input x, return y, which is equal to the square of x.

presque 2 ans il y a

A résolu


Draw a '1' in a zero matrix!

presque 2 ans il y a

A résolu


Draw a '7' in a zero matrix!

presque 2 ans il y a

A résolu


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

presque 2 ans il y a

A résolu


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

presque 2 ans il y a

A résolu


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

presque 2 ans il y a

A résolu


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

presque 2 ans il y a

A résolu


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

presque 2 ans il y a

A résolu


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

presque 2 ans il y a

A résolu


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

presque 2 ans il y a

A résolu


Temperature Conversion 2

presque 2 ans il y a

A résolu


Temperature Conversion 1

presque 2 ans il y a

A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

presque 2 ans il y a

A résolu


square root
Find the square root (y) of an input (x).

presque 2 ans il y a

A résolu


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

presque 2 ans il y a

A résolu


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

presque 2 ans il y a

A résolu


Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

presque 2 ans il y a

A résolu


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

presque 2 ans il y a

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

presque 2 ans il y a

A résolu


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

presque 2 ans il y a

Charger plus