Resuelto


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

más de 9 años hace

Resuelto


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

más de 9 años hace

Resuelto


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

más de 9 años hace

Resuelto


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

más de 9 años hace

Resuelto


Determine Size of Matrix
Use any function that would output size of matrix

más de 9 años hace

Resuelto


Check given number is odd or even
Using input [x], check given number is odd or even if x is odd, output should be true.

más de 9 años hace

Resuelto


Super Basic - 3 + true equals ??
Solve the title

más de 9 años hace

Resuelto


Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2

más de 9 años hace

Resuelto


Square of the sum of optimus
Get the square of the sum of all primes given the limit input x

más de 9 años hace

Resuelto


how to round off a given number containing decimals?
how to round off a given number containing decimals?

más de 9 años hace

Resuelto


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

más de 9 años hace

Resuelto


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

más de 9 años hace

Resuelto


How find maximum element of a column in matrix?
How find maximum element of a column in matrix?

más de 9 años hace

Resuelto


How to find average of each column ?
How to find average of each column for a given matrix?

más de 9 años hace

Resuelto


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

más de 9 años hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

más de 9 años hace

Resuelto


Back to basics 23 - Triangular matrix
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

más de 9 años hace

Resuelto


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.

más de 9 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...

más de 9 años hace

Resuelto


Make roundn function
Make roundn function. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) y=0.56 ...

más de 9 años hace

Resuelto


Basic commands - What platform are you using?
Please ask matlab waht platform are you using.

más de 9 años hace

Resuelto


Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

más de 9 años hace

Resuelto


Calculate representive values (max. min. std)
A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 2.8 2.2 t=3 2.6 2.7 2....

más de 9 años hace

Resuelto


Calculate inverse matrix in square matrix
A=eye(3) Calculate inverse matrix of given input. B=function(A) ans = 1 0 0 0 1 0 ...

más de 9 años hace

Resuelto


Create given matrix
y = 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 1 1 ...

más de 9 años hace

Resuelto


Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

más de 9 años hace

Resuelto


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

más de 9 años hace

Resuelto


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

más de 9 años hace

Cargar más