Feeds
문제를 풀었습니다
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
거의 9년 전
문제를 풀었습니다
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Given a point, P(x,y), find the distance from this point to a linear line. INPUTS: x, y, A, B, C OUTPUTS: d, the distance ...
거의 9년 전
문제를 풀었습니다
Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.
거의 9년 전
문제를 풀었습니다
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
거의 9년 전
문제를 풀었습니다
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;
거의 9년 전
문제를 풀었습니다
Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...
거의 9년 전
문제를 풀었습니다
Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...
거의 9년 전
문제를 풀었습니다
04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...
거의 9년 전
문제를 풀었습니다
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
거의 9년 전
문제를 풀었습니다
Times 3 problem
When you enter the number, it should return the number multiplied by 3
거의 9년 전
문제를 풀었습니다
Double colon operator: Counting up
* Construct a row array countValues from 1 to endValue, using the double colon operator. Ex: If endValue is 5, countValues s...
거의 9년 전
문제를 풀었습니다
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
거의 9년 전
문제를 풀었습니다
Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...
거의 9년 전
문제를 풀었습니다
Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...
거의 9년 전
문제를 풀었습니다
Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...
거의 9년 전
문제를 풀었습니다
matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)
거의 9년 전
문제를 풀었습니다
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년 전
문제를 풀었습니다
Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.
거의 9년 전
문제를 풀었습니다
Vectorize the digits of an Integer
Create a vector of length N for an integer of N digits. x=123045; x_vec=[1 2 3 0 4 5]; I happened upon a trick to do ...
거의 9년 전