A résolu


sum of the first 10 odd numbers
y = sum(first_10_odd_numbers)

environ 11 ans il y a

A résolu


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

environ 11 ans il y a

A résolu


Potential Energy
Calculate the potential energy of a rock.

environ 11 ans il y a

A résolu


square root
Find the square root (y) of an input (x).

environ 11 ans il y a

A résolu


Find all of the odd integers in a vector between the intergers 1 and 10.
Given vector of integers 1:10 [1 2 3 4 5 6 7 8 9 10]

environ 11 ans il y a

A résolu


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

environ 11 ans il y a

A résolu


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

environ 11 ans il y a

A résolu


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 ...

environ 11 ans il y a

A résolu


How to make y half of x
Making y equal to x/2.

environ 11 ans il y a

A résolu


Sum of integers numbers
Sum of the numbers from 1 to 100

environ 11 ans il y a

A résolu


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

environ 11 ans il y a

A résolu


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

environ 11 ans il y a

A résolu


Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

environ 11 ans il y a

A résolu


y equals x divided by 2
function y = x/2

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


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 ...

environ 11 ans il y a

A résolu


Times 3 problem
When you enter the number, it should return the number multiplied by 3

environ 11 ans il y a

A résolu


Largest Prime Number
Given a matrix X, find the largest prime number in X.

environ 11 ans il y a

A résolu


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

environ 11 ans il y a

A résolu


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

environ 11 ans il y a

A résolu


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

environ 11 ans il y a

A résolu


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

environ 11 ans il y a

A résolu


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

environ 11 ans il y a

A résolu


Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

environ 11 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 ...

environ 11 ans il y a

A résolu


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

environ 11 ans il y a

A résolu


Double colon operator: Increment by x
* Construct a row array countValues from 0 to 25, elements incremented by incrementValue. Ex: If incrementValue is 5, countVa...

environ 11 ans il y a

A résolu


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

environ 11 ans il y a

A résolu


Times 32
X is given as your variable. Y is your output multiplied by 32 Example x=1 y=1x32=32

environ 11 ans il y a

A résolu


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

environ 11 ans il y a

Charger plus