A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Charger plus