Resuelto


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

alrededor de 1 mes hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

alrededor de 1 mes hace

Resuelto


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

alrededor de 1 mes hace

Resuelto


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 to use d...

alrededor de 1 mes hace

Resuelto


Draw a '0' in a one matrix!

alrededor de 1 mes hace

Resuelto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

alrededor de 1 mes hace

Resuelto


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

alrededor de 1 mes hace

Resuelto


Determine if a number is prime
Given a positive integer n, return 1 if it is prime, 0 otherwise. Example: is_prime(7) returns 1, is_prime(4) returns 0

alrededor de 1 mes hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

alrededor de 1 mes hace

Resuelto


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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.

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

alrededor de 1 mes hace

Resuelto


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


easy problem
Find the last element of the array

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Cargar más