Feeds
문제를 풀었습니다
Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...
5일 전
문제를 풀었습니다
Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...
5일 전
문제를 풀었습니다
Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...
5일 전
문제를 풀었습니다
Project Euler: Problem 11, Largest product in a grid
What is the greatest product of k adjacent numbers in the same direction (up, down, left, right, or diagonally) in a n×n grid ? ...
5일 전
문제를 풀었습니다
Give me Hamming on five, hold the mayo
A Hamming Number is a positive number that has no prime factor greater than 5. Given a number X, determine how many Hamming num...
5일 전
문제를 풀었습니다
Find Pseudo-Cyclic Number
A cyclic number is an integer in which cyclic permutations of the digits are successive multiples of the number https://en.wikip...
6일 전
문제를 풀었습니다
Approximate e
Given a and n, compute and approximation to f = a * e ^ n, without the use of exp, string operations, or floating point numbers....
6일 전
문제를 풀었습니다
Calculate load on arm 1
A robot is designed with a motor directly attached at the pivot point of the lifting arm. The L inch arm has a weight of W1 lbs...
8일 전
문제를 풀었습니다
Basic Mathematics 2
If a 4’ x 8’ sheet of ½” plywood weighs W lbs and you cut an L” x L” robot base from this material, approximately how much weigh...
8일 전
문제를 풀었습니다
Basic Mathematics 1
If a robot is traveling on a north heading at v1 inches per second and has the ability to only make N degree changes in directio...
8일 전
문제를 풀었습니다
Resistance in a circuit
Two resistors with values of 6.0 ohms and 12 ohms are connected in parallel. This combination is connected in series with a 4 o...
8일 전
문제를 풀었습니다
Calculate Lift Force on an Airfoil
Write a MATLAB function to calculate the lift force acting on an airfoil given the air density, wing area, velocity of the airfl...
11일 전
문제를 풀었습니다
Calculate Drag Force
Write a MATLAB function to compute the drag force on an object moving through air: where: D is drag force (N) ρ is air de...
11일 전
문제를 풀었습니다
Compute Airspeed from Mach Number
Write a MATLAB function that converts a Mach number to airspeed given the speed of sound aa in m/s: V=M⋅a V = airspeed (m/s) M...
11일 전
문제를 풀었습니다
Calculate Reynolds Number
Write a MATLAB function that calculates the Reynolds number for flow over a flat plate: ρ = fluid density (kg/m³) V = veloc...
11일 전
문제를 풀었습니다
Escape from Planet ....
Given a Planets mass M, and raduis r. Calculate the surface escape velocity and the escape velocity at height h. and the diff...
11일 전
문제를 풀었습니다
Acidity of vinegar and salts
Assuming: pH (potentia hydrogenii) = - log10(H+ ionic concentration in mol/Liter). For a buffer solution containing acetic acid ...
15일 전
문제를 풀었습니다
Steering 101-Ackermann Steering Ratio
In a turning vehicle, inner and outer wheels follow different radii. Ackermann steering geometry ensures both wheels roll withou...
15일 전
문제를 풀었습니다
Electric Power Steering (EPS) Assist Curve Calculation
Electric Power Steering (EPS) provides assist torque proportional to driver input. Given Steering torque Ts and Gain k, Compute...
15일 전
문제를 풀었습니다
Sum all elements of a vector or matrix without using some built in functions
Write a function that computes the sum of all elements of the input array v without using the following built-in function: sum,...
15일 전
문제를 풀었습니다
Find out phase angle of second order system.
Find out the phase angle of a second order system. In a control system, the phase angle is given by the inverse of cos.
15일 전
문제를 풀었습니다
DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...
15일 전
문제를 풀었습니다
Calculate SNR in dB using original signal and quantized signal
origs: the original signal quants: the quantized signal *hint* : need to calculate the quantization error and plug into SN...
17일 전
문제를 풀었습니다
Find the shortest distance between a point and a straight line.
Given the Cartesian coordinates of three points A, B and C (in a flat Euclidean space), find the shortest distance between the ...
17일 전
문제를 풀었습니다
polar inertia
given locations of a set of unit masses on complex plane, find polar moment of inerta about the origin. for example output 4 if ...
17일 전
문제를 풀었습니다
Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'
17일 전
문제를 풀었습니다
Determine if a number is prime
Given a positive integer n, return 1 if it is prime, 0 otherwise. Example: is_prime(7) returns 1, is_prime(4) returns 0
17일 전
문제를 풀었습니다
Convert Celsius temperature to Fahrenheit
Given a temperature in Celsius, return the equivalent in Fahrenheit. Formula: F = C * 9/5 + 32Example: cel2fahr(100) returns 212...
17일 전
문제를 풀었습니다
Replace All Below-Average Elements in a Matrix with Zero
Given a 2D matrix of numbers, find the mean of all elements. Replace any element that is strictly below the mean with 0. Return ...
17일 전
문제를 풀었습니다
Keep Only Even Numbers
Given a vector, return a new vector containing only the even numbers in their original order. Example: keep_evens([1 2 3 4 5 6])...
17일 전











