Don't Include a Five
Given a vector A, return vector B with all 5s replaced with 0s.
4日 前
解決済み
High Five!
Write a function that takes a number x and returns y = 'High Five' if x is not equal to five. Return y = 'Denied' if the number ...
4日 前
解決済み
A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...
4日 前
解決済み
Basic Physics X
Calculate the Kinetic Energy (KE) by Weight (w), Distanec (d), and Time (t) without Mass (m) or Speed (v).
4日 前
解決済み
Basic Physics IX
Calculate the Kinetic Energy (KE) by Weight (w) instead of Mass (m).
4日 前
解決済み
Basic Physics VIII
Calculate the Mechanical Energy (ME) when the point is B.
Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.
4日 前
解決済み
Radar Target Distance Calculation
A radar system sends a short electromagnetic pulse toward a target and measures the elapsed time between transmission and recept...
4日 前
解決済み
Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...
4日 前
解決済み
MATLAB Basic: rounding IV
Do rounding towards plus infinity.
Example: -8.8, answer -8
+8.1 answer 9
+8.50 answer 9
4日 前
解決済み
MATLAB Basic: rounding III
Do rounding towards minus infinity.
Example: -8.8, answer -9
+8.1 answer 8
+8.50 answer 8
4日 前
解決済み
MATLAB Basic: rounding II
Do rounding nearest integer.
Example: -8.8, answer -9
+8.1 answer 8
+8.50 answer 9
Pi Estimate 1
Estimate Pi as described in the following link:
<http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>
4日 前
解決済み
Calculate area of sector
A=function(r,seta)
r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...
4日 前
解決済み
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.]
Non-scored bonus...
4日 前
解決済み
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1.
Hint: use increment.
4日 前
解決済み
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for:
A = [ 1 5 8 ]
then
B = [ 1 1 5 ...
4日 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 2.