Feeds
문제를 풀었습니다
5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...
7년 초과 전
문제를 풀었습니다
Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...
7년 초과 전
문제를 풀었습니다
"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...
7년 초과 전
문제를 풀었습니다
Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...
7년 초과 전
문제를 풀었습니다
The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...
7년 초과 전
문제를 풀었습니다
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
7년 초과 전
문제를 풀었습니다
Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.
7년 초과 전
답변 있음
MATLAB as Internet bot
This function may help: http://www.mathworks.com/help/matlab/ref/urlread.html
MATLAB as Internet bot
This function may help: http://www.mathworks.com/help/matlab/ref/urlread.html
12년 초과 전 | 0
답변 있음
add elements to an existing vector
You mean adding or replacing? This works for me: delta = [1;2;3] [NaN;NaN;NaN;NaN;NaN;delta(1:end)]
add elements to an existing vector
You mean adding or replacing? This works for me: delta = [1;2;3] [NaN;NaN;NaN;NaN;NaN;delta(1:end)]
12년 초과 전 | 0
| 수락됨


