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

presque 10 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

presque 10 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

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

presque 10 ans il y a

A résolu


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

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

presque 10 ans il y a

A résolu


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

presque 10 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

presque 10 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

presque 10 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?

presque 10 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?

presque 10 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?

presque 10 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?

presque 10 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?

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

presque 10 ans il y a

A résolu


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

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

presque 10 ans il y a

A résolu


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

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

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

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

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

presque 10 ans il y a

A résolu


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

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

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

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

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

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

presque 10 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

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

presque 10 ans il y a

Charger plus