Solved


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

1 month ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

1 month ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

1 month ago

Solved


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

1 month ago

Solved


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

1 month ago

Solved


Squares
Find the square of x.

1 month ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

1 month ago

Solved


Nth root
Nth root of a number x

1 month ago

Solved


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

1 month ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

1 month ago

Solved


Matlab Basics II - 3 Dimensional Arrays
Assume x is a 3D array with n pages, representing students in a class, for each student (page in the array, the 3rd dimension), ...

1 month ago

Solved


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

1 month ago

Solved


kmph to mps
convert kilometer per hour to meter per second

1 month ago

Solved


Find 0 in array
Given array find where there 0 is.

1 month ago

Solved


Median computation (★)
Given a vector of values, compute the median. The median is defined as the middle value in a set of *sorted* data. Thus, if ...

1 month ago

Solved


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

1 month ago

Solved


Division
Divide a by b.

1 month ago

Solved


Return the sum of all even numbers in a vector
Write a function that takes a vector of integers and returns the sum of all even numbers.

1 month ago

Solved


Integer Division Without Remainder
Write a function that takes two positive integers, a and b, and returns the result of integer division (quotient) without remain...

1 month ago

Solved


Ordinary Annuity : Number of payments (Future Value)
Theorem : Future Value of an Ordinary Annuity where; F : Future value A : Periodic payment r : Rate per period n : Numbe...

1 month ago

Solved


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

1 month ago

Solved


Positive Infinity
Round the array a towards positive infinity

1 month ago

Solved


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

1 month ago

Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

1 month ago

Solved


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

1 month ago

Solved


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 ]

1 month ago

Solved


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

1 month ago

Solved


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

1 month ago

Load more