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 ...
8年以上 前
解決済み
Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.
8年以上 前
解決済み
Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively
8年以上 前
解決済み
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
Square the input
Given a scalar or vector x, return the square of each element.
Example
x = [7 2]
answer = [49 4]
8年以上 前
解決済み
Matlab Basics II - Velocity of a particle
A particle is moving in space, such that it's velocity is given by:
<<http://s30.postimg.org/5rf1xtvj5/cody1.png>>
write a...
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 ...
8年以上 前
解決済み
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
8年以上 前
解決済み
square root
Find the square root (y) of an input (x).
8年以上 前
解決済み
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
8年以上 前
解決済み
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
8年以上 前
解決済み
Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n.
Examples
If input t1=1, r=1, n=7 the...
8年以上 前
解決済み
Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.
8年以上 前
解決済み
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...