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 years 前
已解决
Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...
7 years 前
已解决
"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...
7 years 前
已解决
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 years 前
已解决
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 years 前
已解决
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
7 years 前
已解决
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 years 前
已解决
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
7 years 前
已解决
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 years 前
已回答
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
11 years 前 | 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)]
11 years 前 | 0
| 已接受