문제를 풀었습니다


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

거의 6년 전

문제를 풀었습니다


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

거의 6년 전

문제를 풀었습니다


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

거의 6년 전

문제를 풀었습니다


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

거의 6년 전

답변 있음
Histogram with data frequency
%%%%%%% you can use this code %%%%%%%%%%% a=unique(x); b=length(a); for i=1:b c(i)=sum(y(x==a(i))); end bar(c) %%%%%%...

거의 6년 전 | 0

문제를 풀었습니다


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

거의 6년 전

문제를 풀었습니다


Find out DC Gain of transfer function
Find out DC Gain of transfer function Example, G(s)=5/ (s+2), then DC gain is 2.5 (put s=0)

거의 6년 전

문제를 풀었습니다


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

거의 6년 전

문제를 풀었습니다


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

거의 6년 전

문제를 풀었습니다


Areas
Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...

거의 6년 전

문제를 풀었습니다


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

거의 6년 전

문제를 풀었습니다


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

거의 6년 전

문제를 풀었습니다


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

거의 6년 전

문제를 풀었습니다


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

거의 6년 전

문제를 풀었습니다


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

거의 6년 전

문제를 풀었습니다


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

거의 6년 전

문제를 풀었습니다


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

거의 6년 전

문제를 풀었습니다


Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

거의 6년 전

문제를 풀었습니다


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

거의 6년 전

문제를 풀었습니다


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

거의 6년 전

문제를 풀었습니다


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

거의 6년 전

문제를 풀었습니다


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

거의 6년 전

문제를 풀었습니다


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

거의 6년 전

문제를 풀었습니다


Radians to Degrees
Convert radians to degrees.

거의 6년 전

문제를 풀었습니다


Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

거의 6년 전

문제를 풀었습니다


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

거의 6년 전

문제를 풀었습니다


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

거의 6년 전

문제를 풀었습니다


Find 10's complement
Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

거의 6년 전

문제를 풀었습니다


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

거의 6년 전

더 보기