Resuelto


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

casi 10 años hace

Resuelto


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

casi 10 años hace

Resuelto


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

casi 10 años hace

Resuelto


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

casi 10 años hace

Resuelto


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

casi 10 años hace

Resuelto


Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

casi 10 años hace

Resuelto


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

casi 10 años hace

Resuelto


only input
Return the output without writing any code into the function.

casi 10 años hace

Resuelto


Log of a number
Write a script that will give the log of x as output.

casi 10 años hace

Resuelto


Print the largest eigenvalue of A(500)
Write a function that prints the largest eigenvalue of A(500), without any extraneous output. For a positive integer n, let A...

casi 10 años hace

Resuelto


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

casi 10 años hace

Resuelto


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

casi 10 años hace

Resuelto


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

casi 10 años hace

Resuelto


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

casi 10 años hace

Resuelto


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

casi 10 años hace

Resuelto


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

casi 10 años hace

Resuelto


Sum of digit range
Example: If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return ...

casi 10 años hace

Resuelto


Grandpa's telescope
Two grandkids Dorothy and Benjamin are sharing a telescope made by their grandpa, who used an old lens of spectacles as the obje...

casi 10 años hace

Resuelto


Find mean
given an array, find the mean of the number in that array

casi 10 años hace

Resuelto


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

casi 10 años hace

Resuelto


Basic commands - Left division matrix
Please write a function which will left division of A,B Pay attention this is right division: A/B

casi 10 años hace

Resuelto


Ceil Me Now
Get the ceiling of the input matrix

casi 10 años hace

Resuelto


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

casi 10 años hace

Resuelto


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

casi 10 años hace

Resuelto


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

casi 10 años hace

Resuelto


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

casi 10 años hace

Resuelto


find max
You are given an array number find the maximum

casi 10 años hace

Resuelto


imaginary results
Return the value of the imaginary number i to the power of input argument n.

casi 10 años hace

Cargar más