A space rocket has 3 stages:
- stage 1, s1;
- stage 2, s2;
- stage 3, s3.
If s1 burns 3 x as long as s2 which burns 2 x as long as s3 then how long did s3 burn if the total burn time was tt minutes? How long did s2 burn? s1?
Return the first and last character of a string
Detect a number and replace with two NaN's
Sum the Digits of a Number
Return 'on' or 'off'
Flip the main diagonal of a matrix
Find the largest value in the 3D matrix
Find the "ordinary" or Euclidean distance between A and Z
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Find the Kronecker Tensor Product without using KRON
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office