Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example
start with x = 1 and y = 3
end with y = 1 and x = 3
Do NOT simply r...
約9年 前
解決済み
Create an 'arrow-head" matrix
Write a function that when given an odd number, produces an arrow-head function pointing to the right.
Examples
n = 3
...
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年 前
解決済み
Twins in a Window
<http://en.wikipedia.org/wiki/Twin_primes Twin primes> are prime numbers that differ by 2, such as [11,13] or [41,43]. Write a f...
約9年 前
解決済み
UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.
約9年 前
解決済み
The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...