Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
4年弱 前
解決済み
Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is
720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720)....
4年弱 前
解決済み
A Simple Tide Gauge with MATLAB
*∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿*
You are standing in a few inches of sea water on a beach.
You a...
Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...
4年弱 前
解決済み
Schwarzschild radius
Compute the Schwarzschild radius for objects of mass m (kg). Use c = 299,792.458 km/s and G = 6.6738*10^-11 N*(m/kg)^2. Your fun...
約4年 前
解決済み
Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!
When can one be the Life Member of the IEEE?
Consult the site http://en.wikipedia.org/wiki/Ieee from where it can be seen that IEEE Members who have reached the age of 65 an...
約4年 前
解決済み
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...
約4年 前
解決済み
angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input.
Please pay attention, that 1 ...
Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...
約4年 前
解決済み
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...
約4年 前
解決済み
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...