문제를 풀었습니다


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

9년 초과 전

문제를 풀었습니다


Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

9년 초과 전

문제를 풀었습니다


Area of rhombus
Calculate the rhombus area

9년 초과 전

문제를 풀었습니다


Binary Coder
Take an input number and print the binary value of this number.

9년 초과 전

문제를 풀었습니다


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

9년 초과 전

문제를 풀었습니다


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

9년 초과 전

문제를 풀었습니다


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

9년 초과 전

문제를 풀었습니다


Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

9년 초과 전

문제를 풀었습니다


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

9년 초과 전

문제를 풀었습니다


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

9년 초과 전

문제를 풀었습니다


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

9년 초과 전

문제를 풀었습니다


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

9년 초과 전

문제를 풀었습니다


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

9년 초과 전

문제를 풀었습니다


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

9년 초과 전

문제를 풀었습니다


Positive Infinity
Round the array a towards positive infinity

9년 초과 전

문제


Interpolate scattered data.
Most data was scattered, and there is no gird. There are three data [c] in three different area [x,y]. x=[1 3 4]; y=[1 ...

9년 초과 전 | 8 | 솔버 수: 57

문제를 풀었습니다


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

9년 초과 전

문제를 풀었습니다


Find Sign(Zero Crossing) Changes in Array
Example; A = [1 2 3 -3 -4 -1 -24 2 4 -1 -2 3 1]; ans; [1 2 0 -3 -4 -1 0 2 0 -1 ...

9년 초과 전

문제를 풀었습니다


find whether it is prime or not
For a given number find if its prime

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Writing a nested function: BMI calculation
Write a nested function CalculateBMI that assigns bmiValue given a user's weight and height. Use the following equations to calc...

9년 초과 전

문제를 풀었습니다


Smallest and Largest Real Numbers
Complete the function by assigning minReal with the smallest positive double precision floating-point number, and maxReal with t...

9년 초과 전

문제를 풀었습니다


Bruh
Return 'bruh'.

9년 초과 전

문제를 풀었습니다


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Computing Wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

9년 초과 전

문제를 풀었습니다


prime test
find largest 2 digit prime number

9년 초과 전

문제를 풀었습니다


Travel speed
Write an anonymous function to compute the Euclidean distance given two points (x1, y1) and (x2, y2). Use the following equation...

9년 초과 전

문제를 풀었습니다


Writing a recursive math function
Complete the recursive function RaiseToPower(). Ex: If userBase is 2 and userExponent is 4, then raisedValue is assigned wit...

9년 초과 전

문제를 풀었습니다


Prime checker
Complete the recursive function to determine if a number is prime. Skeletal code is provided in the PrimeChecker function.

9년 초과 전

더 보기