Derek
Content Feed
문제를 풀었습니다
the average value of the elements
Calculate the average value of the elements in the array
1년 초과 전
문제를 풀었습니다
Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.
1년 초과 전
문제를 풀었습니다
Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.
1년 초과 전
문제를 풀었습니다
calculate the tangent of angle in radians
Calculate the tangent of angle in degrees
1년 초과 전
문제를 풀었습니다
Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively
1년 초과 전
문제를 풀었습니다
Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...
1년 초과 전
문제를 풀었습니다
Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.
1년 초과 전
문제를 풀었습니다
Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...
1년 초과 전
문제를 풀었습니다
Rescale Scores
Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...
1년 초과 전
문제를 풀었습니다
Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...
1년 초과 전
문제를 풀었습니다
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...
1년 초과 전
문제를 풀었습니다
Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...
1년 초과 전
문제를 풀었습니다
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
1년 초과 전
문제를 풀었습니다
Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...
1년 초과 전
문제를 풀었습니다
Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...
1년 초과 전
문제를 풀었습니다
Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
1년 초과 전
문제를 풀었습니다
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
1년 초과 전
문제를 풀었습니다
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....
1년 초과 전
문제를 풀었습니다
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
1년 초과 전
문제를 풀었습니다
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
1년 초과 전
문제를 풀었습니다
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
1년 초과 전