Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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.

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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.

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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.

mehr als 9 Jahre vor

Gelöst


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.

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Mehr laden