A résolu


convert matrix to single column
given any matrix, convert it to single column

2 mois il y a

A résolu


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

2 mois il y a

A résolu


Square root of a number
Write a code that will output the square root of x.

2 mois il y a

A résolu


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

2 mois il y a

A résolu


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

2 mois il y a

A résolu


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

2 mois il y a

A résolu


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

2 mois il y a

A résolu


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

2 mois il y a

A résolu


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

2 mois il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

2 mois il y a

A résolu


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

2 mois il y a

A résolu


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

2 mois il y a

A résolu


length of a vector
Find twice the length of a given vector.

2 mois il y a

A résolu


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

2 mois il y a

A résolu


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

2 mois il y a

A résolu


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

2 mois il y a

A résolu


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

2 mois il y a

A résolu


easy problem
Find the last element of the array

2 mois il y a

A résolu


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

2 mois il y a

A résolu


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

2 mois il y a

A résolu


Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'

2 mois il y a

A résolu


Converts numbers into characters
Converts numbers into characters

2 mois 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;...

2 mois il y a

A résolu


to the 2 all elements
to the 2 all elements

2 mois il y a

A résolu


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

2 mois 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.

2 mois il y a

A résolu


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

2 mois 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

2 mois il y a

A résolu


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

2 mois il y a

A résolu


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

2 mois il y a

Charger plus