Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it.
(The original psi is passed as a number to the...
約9年 前
解決済み
Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...
UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions
A = 2+5i
B = 2+5*i
C = both are okay
Write capital letter a...
約9年 前
解決済み
Relative ratio of "1" in binary number
Input(n) is positive integer number
Output(r) is (number of "1" in binary input) / (number of bits).
Example:
* n=0; r=...
約9年 前
解決済み
UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides.
So if A = [1 1]
B = sqrt(2)
約9年 前
解決済み
Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...
約9年 前
解決済み
UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.
約9年 前
解決済み
Half-Swap
Given a vector with an even number of elements,
rearrange it so that the elements in its first
half are switched with those i...
約9年 前
解決済み
Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector
for example
x ...
約9年 前
解決済み
What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...