Community Profile

photo

Lam


Active since 2013

Statistics

All
  • Solver
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Solved


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

6 years ago

Solved


Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

6 years ago

Solved


"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

6 years ago

Solved


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

6 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

6 years ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

6 years ago

Solved


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.

6 years ago

Answered
MATLAB as Internet bot
This function may help: http://www.mathworks.com/help/matlab/ref/urlread.html

11 years ago | 0

Answered
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 ago | 0

| accepted