Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


Potential Energy
Calculate the potential energy of a rock.

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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]

oltre 11 anni fa

Risolto


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.

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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.

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Carica altro