解決済み


Interior angles
Find the sum of interior angles for polygon of x sides.

2ヶ月 前

解決済み


prime test 2
enter the only non prime,non composite number

2ヶ月 前

解決済み


prime test
find largest 2 digit prime number

2ヶ月 前

解決済み


Negative Infinity
Round the given array a towards negative infinity.

2ヶ月 前

解決済み


Positive Infinity
Round the array a towards positive infinity

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


select the primes of a vector
Find the prime numbers in a vector

2ヶ月 前

解決済み


Times 3 problem
When you enter the number, it should return the number multiplied by 3

2ヶ月 前

解決済み


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

2ヶ月 前

解決済み


Complex number
For complex number c=a+bi, write code that will add a and b together.

2ヶ月 前

解決済み


Determine the length of a string of characters
Determine the length of a string of characters

2ヶ月 前

解決済み


Array of Ones
Create a 100 X 100 array of ones.

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


square number
Square a number

2ヶ月 前

解決済み


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

2ヶ月 前

解決済み


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

2ヶ月 前

解決済み


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

2ヶ月 前

解決済み


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

2ヶ月 前

解決済み


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

2ヶ月 前

解決済み


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

2ヶ月 前

解決済み


02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

2ヶ月 前

解決済み


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

2ヶ月 前

解決済み


03 - Matrix Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3a.png>> A 9x9 matrix full of 2's (Hint: use *ones* o...

2ヶ月 前

解決済み


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

2ヶ月 前

解決済み


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

2ヶ月 前

解決済み


CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

2ヶ月 前

解決済み


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

2ヶ月 前

解決済み


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

2ヶ月 前

解決済み


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

2ヶ月 前

解決済み


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

2ヶ月 前

Load more