Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...
9年弱 前
解決済み
Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*!
And I'm talking about a unicorn with not more than one horn on it!
Find max
Find the maximum value of a given vector or matrix.
9年弱 前
解決済み
Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched.
<<http://blogs.mathworks.com/images/se...
9年弱 前
解決済み
Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched.
<<http://blogs.mathworks.com/im...
Remove all the consonants
Remove all the consonants in the given phrase.
Example:
Input s1 = 'Jack and Jill went up the hill';
Output s2 is 'a ...
9年弱 前
解決済み
Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...
9年弱 前
解決済み
Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source.
For a sine wave input, the output of the full wave rec...
9年弱 前
解決済み
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0.
a = 3;
b = [1,2,4];
Returns 0.
a = 3;
b = [1,...
9年弱 前
解決済み
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
Implement full adder circuit
Implement full adder circuit as given in
<http://en.wikipedia.org/wiki/Adder_(electronics)>
Inputs signals are a, b and ...
9年弱 前
解決済み
Find 10's complement
Find 10's complement of a given number.
An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.