Swept Volume and Clearance Volume
The swept volume (V_s) is the volume displaced by the piston as it travels from BDC (Bottom Dead Centre) to TDC (Top Dead Centre...
Caesar Cipher: shift a lowercase string
A Caesar cipher shifts every letter forward through the alphabet by a fixed amount, wrapping around from z back to a.
Given a...
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
2ヶ月 前
解決済み
Square a Number
Given an input x, return y, which is equal to the square of x.
2ヶ月 前
解決済み
Compute Average Power of a Pulsed Radar
Compute the average transmitted power of a pulsed radar over one pulse repetition time. The inputs are the peak power Pp (Watt [...
2ヶ月 前
解決済み
Step up
For given input array, output a array with all elements step up by two
Calculate Radar Pulse Energy
Compute the energy contained in a single radar pulse. The inputs are the peak power Pp (W) and the pulse width PW (s). The pulse...
2ヶ月 前
解決済み
Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...
2ヶ月 前
解決済み
Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...
Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
y ...
2ヶ月 前
解決済み
Perfect Square
Determine if the input is a perfect square (square of an integer) or not.
Example -
If input is 25(==5^2), return 1.
If input...