Feeds
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
거의 11년 전
문제를 풀었습니다
Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...
대략 11년 전
문제를 풀었습니다
The Ulam Matrix
The Ulam spiral is simple to describe. On a gridded piece of paper, write down the number 1. Then write successive integers as y...
대략 11년 전
문제를 풀었습니다
Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...
대략 11년 전
문제를 풀었습니다
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
대략 11년 전
문제를 풀었습니다
construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...
대략 11년 전
문제를 풀었습니다
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
대략 11년 전
문제를 풀었습니다
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...
대략 11년 전
문제를 풀었습니다
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...
대략 11년 전
문제를 풀었습니다
Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*
11년 초과 전
문제를 풀었습니다
Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...
11년 초과 전
문제를 풀었습니다
Television Screen Dimensions
Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...
11년 초과 전
문제를 풀었습니다
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
11년 초과 전
문제를 풀었습니다
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...
11년 초과 전
문제를 풀었습니다
Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...
11년 초과 전
문제를 풀었습니다
Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...
11년 초과 전
문제를 풀었습니다
wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...
11년 초과 전
문제를 풀었습니다
Volume of a sphere given its surface area
You just measured its surface area, that is the input.
11년 초과 전
문제를 풀었습니다
sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.
11년 초과 전
문제를 풀었습니다
Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...
11년 초과 전
문제를 풀었습니다
Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...
11년 초과 전
문제를 풀었습니다
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...
11년 초과 전
문제를 풀었습니다
Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...
11년 초과 전
문제를 풀었습니다
Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.
11년 초과 전








