A résolu


Total resistance of resistors in series
What is the total resistance of a number of resistors in series? A vector R contains the resistances (in Ohm) of n resistors, w...

plus de 3 ans il y a

A résolu


Summation of integers

plus de 3 ans il y a

A résolu


Create a vector
Create a vector from 0 to n by intervals of 2.

plus de 3 ans il y a

A résolu


Array of Ones
Create a 100 X 100 array of ones.

plus de 3 ans il y a

A résolu


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

plus de 3 ans il y a

A résolu


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

plus de 3 ans il y a

A résolu


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

plus de 3 ans il y a

A résolu


Create the following sequence : 0 1 1 4 9 25 64 169 ...
The sequence 0, 1, 1, 4, 9, 25, 64, 169, ... represents the square of the sequence of Fibonacci numbers. Let n repres...

plus de 3 ans il y a

A résolu


surface of a spherical planet
you just discovered its circumference, that is the input.

plus de 3 ans il y a

A résolu


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

plus de 3 ans il y a

A résolu


how tall are you?
you can find the length wit this code.

plus de 3 ans il y a

A résolu


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

plus de 3 ans il y a

A résolu


Square a Number
Given an input x, return y, which is equal to the square of x.

plus de 3 ans il y a

A résolu


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

plus de 3 ans il y a

A résolu


length of a vector
Find twice the length of a given vector.

plus de 3 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 3 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

plus de 3 ans il y a

A résolu


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

plus de 3 ans il y a

A résolu


Convert degrees to radians
Given input in degrees, output to radians

plus de 3 ans il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

plus de 3 ans il y a

A résolu


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

plus de 3 ans il y a

A résolu


Energy Conversion 2

plus de 3 ans il y a

A résolu


Energy Conversion 1

plus de 3 ans il y a

A résolu


Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

plus de 3 ans il y a

A résolu


Area Conversion 1

plus de 3 ans il y a

A résolu


Area Conversion 2

plus de 3 ans il y a

A résolu


Mass Conversion 2

plus de 3 ans il y a

A résolu


Mass Conversion 1

plus de 3 ans il y a

A résolu


Temperature Conversion 3

plus de 3 ans il y a

A résolu


Temperature Conversion 2

plus de 3 ans il y a

Charger plus